extcon: trivial: kfree missed from remove path
Subsystems (2)
PATCH 1/1 extcon: trivial: kfree missed from remove path
From: anish kumar <[email protected]>
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 <[email protected]>
--- drivers/extcon/extcon-max77693.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/extcon/extcon-max77693.c +1 -0
@@ -762,6 +762,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 ;
Signature · 1 line
1.7.1
Quoted 9 lines · anish kumar
From: anish kumar <[email protected]>
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 <[email protected]>--- drivers/extcon/extcon-max77693.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
You can check it after some hours at extcon tree:
- http://git.infradead.org/users/kmpark/linux-samsung/shortlog/refs/heads/extcon-for-next
Chanwoo Choi