]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
iommu/tegra: smmu: fix issue with detach_dev
authorSri Krishna chowdary <schowdary@nvidia.com>
Thu, 21 Aug 2014 06:37:59 +0000 (12:07 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Mon, 25 Aug 2014 17:22:02 +0000 (10:22 -0700)
commit97943c5568c02bf3f5216376046be0a218dd56ac
tree6d424077fad27ed4999f80c1da11b520b11f9df8
parentf9abd9e6de2092b0b98dbc1f01b17e4d49b61457
iommu/tegra: smmu: fix issue with detach_dev

While detaching a device, make sure the debugfs_root of client
is marked as NULL. In case the device re-attaches itself with SMMU,
the stale pointer from debugfs_root will be used to create debugfs
and can cause kernel panic.

Bug 1546169
Bug 200031739

Change-Id: If0f58e4106ca2fe4b761c7fe185b17272824f76d
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/486335
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
drivers/iommu/tegra-smmu.c