diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-20 08:37:52 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-04 05:34:13 -0400 |
commit | 9b27e82d208b85ee9c3146693bb1e92f9ade4468 (patch) | |
tree | 0086b100c6b0e1178ac444dc1422ab0ad5438a96 /drivers/iommu/intel-iommu.c | |
parent | e16922af9d291a939679c63dc4a1373088734af4 (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/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 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) | |||
2403 | printk(KERN_ERR "IOMMU: Failed to create 0-16MiB identity map; " | 2403 | printk(KERN_ERR "IOMMU: Failed to create 0-16MiB identity map; " |
2404 | "floppy might not work\n"); | 2404 | "floppy might not work\n"); |
2405 | 2405 | ||
2406 | pci_dev_put(pdev); | ||
2406 | } | 2407 | } |
2407 | #else | 2408 | #else |
2408 | static inline void iommu_prepare_isa(void) | 2409 | static inline void iommu_prepare_isa(void) |