From: anish kumar Date: Mon, 22 Oct 2012 01:11:43 +0000 (+0900) Subject: extcon: trivial: kfree missed from remove path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=44b7bccf7c5372eab3408593ab2142a5dcde03f6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git extcon: trivial: kfree missed from remove path Extcon core doesn't free the memory when we do unregister. Kfree is added in the remove path as it was missing. Signed-off-by: anish kumar Signed-off-by: Chanwoo Choi Signed-off-by: MyungJoo Ham --- diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index cffeab65051..a17d0d91ada 100644 --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon-max77693.c @@ -783,6 +783,7 @@ static int __devexit max77693_muic_remove(struct platform_device *pdev) free_irq(muic_irqs[i].virq, info); cancel_work_sync(&info->irq_work); extcon_dev_unregister(info->edev); + kfree(info->edev); kfree(info); return 0;