iommu/tegra: smmu: Fix unsleepable memory allocation
authorHiroshi DOYU <hdoyu@nvidia.com>
Wed, 27 Jun 2012 09:54:01 +0000 (12:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:03:52 +0000 (09:03 -0700)
commit4ce16269215ffaad3d480425bc74bf632956151e
tree9510e4d38ad65c5018595d06077bceef0dab7bd0
parentb9e619e35c808f11f2da804c2fac1f2031e1cafd
iommu/tegra: smmu: Fix unsleepable memory allocation

commit 8f53dc724a83a0082184fa27df80c25c7df47340 upstream.

allo_pdir() is called in smmu_iommu_domain_init() with spin_lock
held. memory allocations in it have to be atomic/unsleepable.

Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reported-by: Chris Wright <chrisw@sous-sol.org>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/tegra-smmu.c