Skip to contentSkip to conversation

extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()

PATCH New Axel Lin 1 participant 1 message Jun 16, 2012 External connector subsystem (extcon)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/extcon/extcon-max8997.c |    1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-max8997.c +1 -0
index 5ecf176..a4ed30b 100644
@@ -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;
Signature · 1 line
1.7.9.5