Messages in this thread Patch in this message | | | Date | Wed, 16 Sep 2009 15:36:26 -0700 | From | Greg KH <> | Subject | [patch 13/45] x86/amd-iommu: fix broken check in amd_iommu_flush_all_devices |
| |
2.6.31-stable review patch. If anyone has any objections, please let us know.
------------------ From: Joerg Roedel <joerg.roedel@amd.com>
commit e0faf54ee82bf9c07f0307b4391caad4020bd659 upstream.
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.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- arch/x86/kernel/amd_iommu.c | 2 -- 1 file changed, 2 deletions(-)
--- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -485,8 +485,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)
| |