mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
iommu/vt-d: Don't skip PCI devices when disabling IOTLB
commitda972fb13bupstream. Fix a simple typo when disabling IOTLB on PCI(e) devices. Fixes:b16d0cb9e2("iommu/vt-d: Always enable PASID/PRI PCI capabilities before ATS") Signed-off-by: Jeremy McNicoll <jmcnicol@redhat.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b864f4e50c
commit
c65a7b6841
|
|
@ -1489,7 +1489,7 @@ static void iommu_disable_dev_iotlb(struct device_domain_info *info)
|
|||
{
|
||||
struct pci_dev *pdev;
|
||||
|
||||
if (dev_is_pci(info->dev))
|
||||
if (!dev_is_pci(info->dev))
|
||||
return;
|
||||
|
||||
pdev = to_pci_dev(info->dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user