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

Commit 9b27e82d authored by Yijing Wang's avatar Yijing Wang Committed by Joerg Roedel
Browse files

iommu/vt-d: Fix reference count in iommu_prepare_isa



Decrease the device reference count avoid memory leak.

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent e16922af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2403,6 +2403,7 @@ static inline void iommu_prepare_isa(void)
		printk(KERN_ERR "IOMMU: Failed to create 0-16MiB identity map; "
		       "floppy might not work\n");

	pci_dev_put(pdev);
}
#else
static inline void iommu_prepare_isa(void)