Skip to content

Commit

Permalink
iommu/vt-d: Fix reference count in iommu_prepare_isa
Browse files Browse the repository at this point in the history
Decrease the device reference count avoid memory leak.

Signed-off-by: Yijing Wang <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
YijingWang authored and joergroedel committed Jul 4, 2014
1 parent e16922a commit 9b27e82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9b27e82

Please sign in to comment.