Commit 2187a57e authored by Lu Baolu's avatar Lu Baolu Committed by Joerg Roedel
parent 782861df
...@@ -827,7 +827,7 @@ struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn) ...@@ -827,7 +827,7 @@ struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn)
} }
if (pdev && drhd->include_all) { if (pdev && drhd->include_all) {
got_pdev: got_pdev:
if (bus && devfn) { if (bus && devfn) {
*bus = pdev->bus->number; *bus = pdev->bus->number;
*devfn = pdev->devfn; *devfn = pdev->devfn;
...@@ -836,7 +836,7 @@ struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn) ...@@ -836,7 +836,7 @@ struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn)
} }
} }
iommu = NULL; iommu = NULL;
out: out:
if (iommu_is_dummy(iommu, dev)) if (iommu_is_dummy(iommu, dev))
iommu = NULL; iommu = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment