aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-09-03 15:45:51 +0200
committerJoerg Roedel <joerg.roedel@amd.com>2009-09-03 15:49:56 +0200
commite0faf54ee82bf9c07f0307b4391caad4020bd659 (patch)
treee3091b489ad6ea4cba855f975cb4d46526e69cdf /arch/x86/kernel/amd_iommu.c
parentx86/amd-iommu: Remove redundant 'IOMMU' string (diff)
downloadlinux-dev-e0faf54ee82bf9c07f0307b4391caad4020bd659.tar.xz
linux-dev-e0faf54ee82bf9c07f0307b4391caad4020bd659.zip
x86/amd-iommu: fix broken check in amd_iommu_flush_all_devices
The amd_iommu_pd_table is indexed by protection domain number and not by device id. So this check is broken and must be removed. Cc: stable@kernel.org Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 3e62d7836522..009d722af009 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -479,8 +479,6 @@ void amd_iommu_flush_all_devices(void)
int i;
for (i = 0; i <= amd_iommu_last_bdf; ++i) {
- if (amd_iommu_pd_table[i] == NULL)
- continue;
iommu = amd_iommu_rlookup_table[i];
if (!iommu)