]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Fix missing iommu_shutdown initialization in passthrough mode
authorShuah Khan <shuah.khan@hp.com>
Wed, 6 Jun 2012 16:50:06 +0000 (10:50 -0600)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 7 Jun 2012 10:11:21 +0000 (12:11 +0200)
commit8996c01cc151421f823fb770be98d58b2a2567e8
tree930c98722adb84eabf64830a2192efe7a31155bc
parent57f3ed88061628287d25541963b0145037b29b16
iommu/amd: Fix missing iommu_shutdown initialization in passthrough mode

The iommu_shutdown callback is not initialized when the AMD
IOMMU driver runs in passthrough mode. Fix that by moving
the callback initialization before the check for
passthrough mode.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu_init.c