mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 02:40:54 +07:00
isdn: avm: call pci_disable_device() if pci_probe() failed
Driver should call pci_disable_device() if it returns from pci_probe() with error. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dacb397511
commit
b69bcd9d9c
@ -1273,6 +1273,7 @@ static int __devinit c4_probe(struct pci_dev *dev,
|
||||
if (retval != 0) {
|
||||
printk(KERN_ERR "c4: no AVM-C%d at i/o %#x, irq %d detected, mem %#x\n",
|
||||
nr, param.port, param.irq, param.membase);
|
||||
pci_disable_device(dev);
|
||||
return -ENODEV;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user