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:
ee02a4e
)
bfin_mac: fix memleak in mii_bus{probe|remove}
author
Denis Kirjanov
<kirjanov@gmail.com>
Tue, 18 May 2010 01:34:46 +0000
(
01:34
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 24 May 2010 06:18:32 +0000
(23:18 -0700)
Fix memory leak with miibus->irq
Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bfin_mac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bfin_mac.c
b/drivers/net/bfin_mac.c
index 39a54bad397f7212b22340187a73325f20b7ab9d..368f33313fb6619635383ca9799ae7cf8d5e6376 100644
(file)
--- a/
drivers/net/bfin_mac.c
+++ b/
drivers/net/bfin_mac.c
@@
-1626,6
+1626,7
@@
static int __devinit bfin_mii_bus_probe(struct platform_device *pdev)
return 0;
out_err_mdiobus_register:
+ kfree(miibus->irq);
mdiobus_free(miibus);
out_err_alloc:
peripheral_free_list(pin_req);
@@
-1638,6
+1639,7
@@
static int __devexit bfin_mii_bus_remove(struct platform_device *pdev)
struct mii_bus *miibus = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
mdiobus_unregister(miibus);
+ kfree(miibus->irq);
mdiobus_free(miibus);
peripheral_free_list(pin_req);
return 0;