summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-05-20 20:37:52 +0800
committerJoerg Roedel <jroedel@suse.de>2014-07-04 11:34:13 +0200
commit9b27e82d208b85ee9c3146693bb1e92f9ade4468 (patch)
tree0086b100c6b0e1178ac444dc1422ab0ad5438a96 /drivers/iommu
parente16922af9d291a939679c63dc4a1373088734af4 (diff)
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/intel-iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 219c2c51a312..9b9f28ea3db2 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -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)