Skip to contentSkip to conversation

staging: crystalhd: call disable_pci_device() if pci_probe() failed

PATCH Applied Kulikov Vasiliy 2 participants 2 messages Aug 9, 2010 – Aug 23, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 12/18 staging: crystalhd: call disable_pci_device() if pci_probe() failed

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

---
 drivers/staging/crystalhd/crystalhd_lnx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/crystalhd/crystalhd_lnx.c +1 -0
index fbb80f0..115e79b 100644
@@ -570,6 +570,7 @@ static int __devinit chd_dec_pci_probe(struct pci_dev *pdev,
 	rc = chd_pci_reserve_mem(pinfo);
 	if (rc) {
 		BCMLOG_ERR("Failed to setup memory regions.\n");
+		pci_disable_device(pdev);
 		return -ENOMEM;
 	}
 
Signature · 1 line
1.7.0.4