Unverified Commit 3bd3a69f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12451 iommu/vt-d: Fix double list_add when enabling VMD in scalable mode

parents 8a845799 f6bbffa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2838,7 +2838,7 @@ static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
	spin_unlock_irqrestore(&device_domain_lock, flags);

	/* PASID table is mandatory for a PCI device in scalable mode. */
	if (dev && dev_is_pci(dev) && sm_supported(iommu)) {
	if (sm_supported(iommu) && !dev_is_real_dma_subdevice(dev)) {
		ret = intel_pasid_alloc_table(dev);
		if (ret) {
			dev_err(dev, "PASID table allocation failed\n");