]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf748093809d2500586256717b92dd5062b4d2d35
treeae15ec7282706da6947bd97d87354d7dbe58b6b0
parent5efd92b8ec91a20587eb6ce57591f47fb030e44c
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