Skip to content

Commit

Permalink
extcon: max8997: Add missing kfree for info->edev in max8997_muic_rem…
Browse files Browse the repository at this point in the history
…ove()

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>
  • Loading branch information
Axel Lin authored and Greg Kroah-Hartman committed Jun 18, 2012
1 parent 3f1dc55 commit 96c9f05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/extcon/extcon-max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96c9f05

Please sign in to comment.