Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0faf54e authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent ae908c22
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)