]> git.hungrycats.org Git - linux/commitdiff
[PATCH] memleak in macsonic
authorDave Jones <davej@codemonkey.org.uk>
Mon, 25 Nov 2002 10:41:51 +0000 (02:41 -0800)
committerDave Jones <davej@codemonkey.org.uk>
Mon, 25 Nov 2002 10:41:51 +0000 (02:41 -0800)
drivers/net/macsonic.c

index 937b5d086c936c2e8f307837fb1c459913983ccf..e87f5aad0542ac3e5ab23f14c331bd36ffe33165 100644 (file)
@@ -195,6 +195,7 @@ int __init macsonic_init(struct net_device* dev)
        if ((lp->rba = (char *)
             kmalloc(SONIC_NUM_RRS * SONIC_RBSIZE, GFP_KERNEL | GFP_DMA)) == NULL) {
                printk(KERN_ERR "%s: couldn't allocate receive buffers\n", dev->name);
+               kfree(lp);
                return -ENOMEM;
        }