diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-20 20:37:52 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-04 11:34:13 +0200 |
commit | 9b27e82d208b85ee9c3146693bb1e92f9ade4468 (patch) | |
tree | 0086b100c6b0e1178ac444dc1422ab0ad5438a96 /drivers/iommu/intel-iommu.c | |
parent | e16922af9d291a939679c63dc4a1373088734af4 (diff) | |
download | op-kernel-dev-9b27e82d208b85ee9c3146693bb1e92f9ade4468.zip op-kernel-dev-9b27e82d208b85ee9c3146693bb1e92f9ade4468.tar.gz |
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/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 219c2c5..9b9f28e 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) |