x86/amd-iommu: fix broken check in amd_iommu_flush_all_devices
commit70b6cf945725c8b07ee18611165bb7dce4f41d74
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 3 Sep 2009 13:45:51 +0000 (3 15:45 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Sep 2009 15:43:53 +0000 (24 08:43 -0700)
treea367dcc0ce1e7aec5b939f9a5f3977c63d93155c
parent6b0e630bc078ac1431afb6a0d96098b1c288a465
x86/amd-iommu: fix broken check in amd_iommu_flush_all_devices

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