diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-06-16 13:25:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-18 23:30:42 (GMT) |
commit | 96c9f05b39a5a3239cf0588cc86a1b95cac652c4 (patch) | |
tree | 9bfad45dcb1e1556ca851d986dfc86eb065c2fc2 | |
parent | 3f1dc550b069e9fbfe375844f3c76f2cdd12f05c (diff) | |
download | linux-96c9f05b39a5a3239cf0588cc86a1b95cac652c4.tar.xz |
extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()
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>
-rw-r--r-- | drivers/extcon/extcon-max8997.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 5ecf176..a4ed30b 100644 --- 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; |