Skip to content

Commit eec1009

Browse files
snitsgregkh
authored andcommitted
iommu/vt-d: Remove device comparison in context_setup_pass_through_cb
commit 64f7929 upstream. Remove the device comparison check in context_setup_pass_through_cb. pci_for_each_dma_alias already makes a decision on whether the callback function should be called for a device. With the check in place it will fail to create context entries for aliases as it walks up to the root bus. Fixes: 2031c46 ("iommu/vt-d: Add support for static identity domain") Closes: https://lore.kernel.org/linux-iommu/[email protected]/ Cc: [email protected] Signed-off-by: Jerry Snitselaar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e59119d commit eec1009

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4547,9 +4547,6 @@ static int context_setup_pass_through_cb(struct pci_dev *pdev, u16 alias, void *
45474547
{
45484548
struct device *dev = data;
45494549

4550-
if (dev != &pdev->dev)
4551-
return 0;
4552-
45534550
return context_setup_pass_through(dev, PCI_BUS_NUM(alias), alias & 0xff);
45544551
}
45554552

0 commit comments

Comments
 (0)