From: Yijing Wang Date: Tue, 20 May 2014 12:37:52 +0000 (+0800) Subject: iommu/vt-d: Fix reference count in iommu_prepare_isa X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9b27e82d208b85ee9c3146693bb1e92f9ade4468;p=deliverable%2Flinux.git iommu/vt-d: Fix reference count in iommu_prepare_isa Decrease the device reference count avoid memory leak. Signed-off-by: Yijing Wang Signed-off-by: Joerg Roedel --- 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)