intel-iommu: Fix use after release during device attach
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 2 Nov 2010 07:05:51 +0000 (08:05 +0100)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:21:15 +0000 (08:21 -0700)
commit62e2d392a18f2a3149e31fecbe18a32a06587174
treeebfe6ab02347ac7d4670cccfb279f763a192737b
parentf0aa357c5f66cc5befc35d5d438d323182cdeb2a
intel-iommu: Fix use after release during device attach

upstream commit 7a6610139a

Obtain the new pgd pointer before releasing the page containing this
value.

Cc: stable@kernel.org
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c