mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
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>
This commit is contained in:
parent
3f1dc550b0
commit
96c9f05b39
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user