1
0
Fork 0

iommu/vt-d: Fix reference count in iommu_prepare_isa

Decrease the device reference count avoid memory leak.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
hifive-unleashed-5.1
Yijing Wang 2014-05-20 20:37:52 +08:00 committed by Joerg Roedel
parent e16922af9d
commit 9b27e82d20
1 changed files with 1 additions and 0 deletions

View File

@ -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)