Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Alanen <maalanen@ra.abo.fi>2002-07-31 22:24:57 -0700
committerChristoph Hellwig <hch@sb.bsdonline.org>2002-07-31 22:24:57 -0700
commitaf5afe61e60c0f13275a25a05209a82884cc3d95 (patch)
treedac1547ef4d2571ae5dc0f7567d8951b5342725b
parentb6e98a8b5cc9952b45fcc3bb21d43848caae35f0 (diff)
[PATCH] using ptr after kfree()
Somebody noticed on #kernelnewbies. In the error path, so this is silly cleanup work...
-rw-r--r--drivers/net/au1000_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c
index aab50f6e2219..64c2b53a6413 100644
--- a/drivers/net/au1000_eth.c
+++ b/drivers/net/au1000_eth.c
@@ -819,9 +819,9 @@ free_region:
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;
}