Skip to contentSkip to conversation

mtip32xx: Fix incorrectly releasing a reference to pci_dev in pci_remove()

PATCH New Asai Thambi S P 1 participant 1 message Mar 14, 2014 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtip32xx: Fix incorrectly releasing a reference to pci_dev in pci_remove()

Fix incorrectly releasing a reference to pci_dev in pci_remove()

---
 drivers/block/mtip32xx/mtip32xx.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/block/mtip32xx/mtip32xx.c +0 -2
index 624e9d9..54ad4df 100644
@@ -4737,8 +4737,6 @@ static void mtip_pci_remove(struct pci_dev *pdev)
 
 	pcim_iounmap_regions(pdev, 1 << MTIP_ABAR);
 	pci_set_drvdata(pdev, NULL);
-	pci_dev_put(pdev);
-
 }
 
 /*
Signature · 1 line
1.7.1