From: Axel Lin Date: Sat, 16 Jun 2012 13:25:11 +0000 (+0800) Subject: extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=96c9f05b39a5a3239cf0588cc86a1b95cac652c4;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 5ecf1763b5d4..a4ed30bd9a41 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;