patch-2.4.1 linux/drivers/net/pcnet32.c
Next file: linux/drivers/net/ppp_async.c
Previous file: linux/drivers/net/myri_sbus.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Jan 28 13:28:09 2001
- Orig file:
v2.4.0/linux/drivers/net/pcnet32.c
- Orig date:
Mon Dec 11 13:38:29 2000
diff -u --recursive --new-file v2.4.0/linux/drivers/net/pcnet32.c linux/drivers/net/pcnet32.c
@@ -685,6 +685,7 @@
if (a == NULL) {
printk(KERN_ERR "pcnet32: No access methods\n");
+ pci_free_consistent(lp->pci_dev, sizeof(*lp), lp, lp->dma_addr);
return -ENODEV;
}
lp->a = *a;
@@ -731,6 +732,7 @@
printk(", probed IRQ %d.\n", dev->irq);
else {
printk(", failed to detect IRQ line.\n");
+ pci_free_consistent(lp->pci_dev, sizeof(*lp), lp, lp->dma_addr);
return -ENODEV;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)