Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /drivers/net/pcnet32.c

Filename:/drivers/net/pcnet32.c
Lines Added:2
Lines Deleted:0
Also changed in: (Previous) 2.4.1-pre12  2.4.0-ac12  2.4.0-ac11  2.4.0-ac10  2.4.0-test12  2.4.0-test10 
(Following) 2.4.1-ac1  2.4.1-ac2  2.4.1-ac3  2.4.1-ac4  2.4.1-ac5  2.4.1-ac6 

Location
[  2.4.1
  [  drivers
    [  net
       o  pcnet32.c

Patch

diff -u --recursive --new-file v2.4.0/linux/drivers/net/pcnet32.c linux/drivers/net/pcnet32.c
--- v2.4.0/linux/drivers/net/pcnet32.c   Mon Dec 11 13:38:29 2000
+++ linux/drivers/net/pcnet32.c   Sun Jan 28 13:28:09 2001
@@ -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;
    }
     }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.