staging: crystalhd: call disable_pci_device() if pci_probe() failed
Subsystems (2)
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.
Signed-off-by Kulikov Vasiliy <[email protected]>
--- drivers/staging/crystalhd/crystalhd_lnx.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/crystalhd/crystalhd_lnx.c +1 -0
@@ -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
Quoted 4 lines · Kulikov Vasiliy
Driver should call
disable_pci_device()if it returns frompci_probe()with error.Signed-off-by Kulikov Vasiliy <[email protected]>
Looks fine by me.
Acked-by Jarod Wilson <[email protected]>
Signature · 2 lines
Jarod Wilson [email protected]