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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 17 Jan 2011 16:21:42 +0000 (16:21 +0000)
commit7a6610139a1e1d9297dd1c5d178022eac36839cb
tree48ffd3762fa1961bfce3001f3783091e29142a58
parente78bf5e6cbe837daa6ab628a5f679548742994d3
intel-iommu: Fix use after release during device attach

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>
Reviewed-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c