]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
iommu/tegra: smmu: Nullify stale pointer
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 30 Sep 2014 15:19:26 +0000 (20:49 +0530)
committerSri Krishna Chowdary <schowdary@nvidia.com>
Tue, 7 Oct 2014 09:55:27 +0000 (02:55 -0700)
commit8109992b9a2bcc568808532ec9aa5a029a289029
tree69552b91df061b29c0786501e09e820e5fe5e94d
parent32f755c621d8ec2825aa70b6aceb1ec599e130a8
iommu/tegra: smmu: Nullify stale pointer

The map* in smmu_map_prop points to the dma_iommu_mapping
which was destroyed. It may be possible that a client which registers
to this swgroup will be using the stale pointer and not create one
new dma_iommu_mapping * if this pointer is not set NULL.
Fix it by setting it NULL just before domain is destroyed.

Bug 200031739

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