Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96c9f05b authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f1dc550
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;