projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eff683
)
eth16i: fix memory leak
author
Kulikov Vasiliy
<segooon@gmail.com>
Thu, 15 Jul 2010 00:57:19 +0000
(17:57 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 15 Jul 2010 00:57:19 +0000
(17:57 -0700)
Free allocated netdev if no probe is expected.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/eth16i.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/eth16i.c
b/drivers/net/eth16i.c
index 874973f558e92ee1b7ddc4fba185aecdc49f127a..10e39f2b31c3993e7e5bce57be2944702235481a 100644
(file)
--- a/
drivers/net/eth16i.c
+++ b/
drivers/net/eth16i.c
@@
-1442,8
+1442,10
@@
int __init init_module(void)
dev->if_port = eth16i_parse_mediatype(mediatype[this_dev]);
if(io[this_dev] == 0) {
- if(this_dev != 0) /* Only autoprobe 1st one */
+ if (this_dev != 0) { /* Only autoprobe 1st one */
+ free_netdev(dev);
break;
+ }
printk(KERN_NOTICE "eth16i.c: Presently autoprobing (not recommended) for a single card.\n");
}