iommu/tegra: smmu: Fix unsleepable memory allocation
authorHiroshi DOYU <hdoyu@nvidia.com>
Wed, 27 Jun 2012 09:54:01 +0000 (12:54 +0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 2 Jul 2012 09:56:44 +0000 (11:56 +0200)
commit8f53dc724a83a0082184fa27df80c25c7df47340
treeae15ec7282706da6947bd97d87354d7dbe58b6b0
parentac1534a55d1e87d59a21c09c570605933b551480
iommu/tegra: smmu: Fix unsleepable memory allocation

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>
Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/tegra-smmu.c