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

Commit e644a013 authored by Radmila Kompová's avatar Radmila Kompová Committed by Joerg Roedel
Browse files

iommu/amd: Fix resource leak in iommu_init_device()



Detected by cppcheck.

Signed-off-by: default avatarKamil Dudka <kdudka@redhat.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent 82fcfc67
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -456,8 +456,10 @@ static int iommu_init_device(struct device *dev)
	}

	ret = init_iommu_group(dev);
	if (ret)
	if (ret) {
		free_dev_data(dev_data);
		return ret;
	}

	if (pci_iommuv2_capable(pdev)) {
		struct amd_iommu *iommu;