projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f1dc55
)
extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()
author
Axel Lin
<axel.lin@gmail.com>
Sat, 16 Jun 2012 13:25:11 +0000
(21:25 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 18 Jun 2012 23:30:42 +0000
(16:30 -0700)
extcon_dev_unregister(info->edev) doest not free info->edev, we need to call
kfree(info->edev) here.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-max8997.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon-max8997.c
b/drivers/extcon/extcon-max8997.c
index 5ecf1763b5d4279ed0418302032c1e531b456ae2..a4ed30bd9a4182c26168bd3bbc81b206641739a2 100644
(file)
--- a/
drivers/extcon/extcon-max8997.c
+++ b/
drivers/extcon/extcon-max8997.c
@@
-514,6
+514,7
@@
static int __devexit max8997_muic_remove(struct platform_device *pdev)
extcon_dev_unregister(info->edev);
+ kfree(info->edev);
kfree(info);
return 0;