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:
8aa06af
)
wd: fix memory leak
author
Kulikov Vasiliy
<segooon@gmail.com>
Thu, 15 Jul 2010 00:53:18 +0000
(17:53 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 15 Jul 2010 00:53:18 +0000
(17:53 -0700)
Unmap mapped IO in wd_probe1() if register_netdev() failed.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wd.c
b/drivers/net/wd.c
index 746a5ee32f3356cf82de27fe583910f3053526e2..eb72c67699abb50f30e8b8bf7d30b43c52b73daa 100644
(file)
--- a/
drivers/net/wd.c
+++ b/
drivers/net/wd.c
@@
-358,8
+358,10
@@
static int __init wd_probe1(struct net_device *dev, int ioaddr)
#endif
err = register_netdev(dev);
- if (err)
+ if (err)
{
free_irq(dev->irq, dev);
+ iounmap(ei_status.mem);
+ }
return err;
}