Commit af5afe61 authored by Marcus Alanen's avatar Marcus Alanen Committed by Christoph Hellwig

[PATCH] using ptr after kfree()

Somebody noticed on #kernelnewbies. In the error path, so this is
silly cleanup work...
parent b6e98a8b
......@@ -819,9 +819,9 @@ au1000_probe1(struct net_device *dev, long ioaddr, int irq, int port_num)
MAX_BUF_SIZE * (NUM_TX_BUFFS+NUM_RX_BUFFS));
if (dev->priv != NULL)
kfree(dev->priv);
kfree(dev);
printk(KERN_ERR "%s: au1000_probe1 failed. Returns %d\n",
dev->name, retval);
kfree(dev);
return retval;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment