Skip to contentSkip to conversation

isdn: eicon: call disable_pci_device() if pci_probe() failed

PATCH Superseded Kulikov Vasiliy 1 participant 1 message Aug 6, 2010

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 8/18 isdn: eicon: call disable_pci_device() if pci_probe() failed

Driver should call disable_pci_device() if it returns from pci_probe() with error.

---
 drivers/isdn/hardware/eicon/divasmain.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/isdn/hardware/eicon/divasmain.c +1 -0
index ed9c555..61e077e 100644
@@ -743,6 +743,7 @@ static int __devinit divas_init_one(struct pci_dev *pdev,
 			CardProperties[ent->driver_data].
 			Name, pdev->bus->number,
 			pdev->devfn);
+		pci_disable_device(pdev);
 		return (-EIO);
 	}
 
Signature · 1 line
1.7.0.4