diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-09-03 09:45:51 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-09-03 09:49:56 -0400 |
commit | e0faf54ee82bf9c07f0307b4391caad4020bd659 (patch) | |
tree | e3091b489ad6ea4cba855f975cb4d46526e69cdf /arch/x86/kernel/amd_iommu.c | |
parent | ae908c22aa2b9f7d4b41bd02d14e473f79c22dd3 (diff) |
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.c | 2 |
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) | |||
479 | int i; | 479 | int i; |
480 | 480 | ||
481 | for (i = 0; i <= amd_iommu_last_bdf; ++i) { | 481 | for (i = 0; i <= amd_iommu_last_bdf; ++i) { |
482 | if (amd_iommu_pd_table[i] == NULL) | ||
483 | continue; | ||
484 | 482 | ||
485 | iommu = amd_iommu_rlookup_table[i]; | 483 | iommu = amd_iommu_rlookup_table[i]; |
486 | if (!iommu) | 484 | if (!iommu) |