Skip to contentSkip to conversation

ehci: fix missing kfree in remove path also

PATCH In review Ajay Kumar Gupta 3 participants 3 messages Dec 16, 2009 – Dec 29, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ehci: fix missing kfree in remove path also

Added missing kfree() in ehci_hcd_omap_remove().

---
 drivers/usb/host/ehci-omap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-omap.c +1 -0
index 74d07f4..2460f0d 100644
@@ -681,6 +681,7 @@ static int ehci_hcd_omap_remove(struct platform_device *pdev)
 	iounmap(omap->tll_base);
 	iounmap(omap->uhh_base);
 	usb_put_hcd(hcd);
+	kfree(omap);
 
 	return 0;
 }
Signature · 1 line
1.6.2.4
#1 lore raw
Quoted 1 line · Ajay Kumar Gupta

Added missing kfree() in ehci_hcd_omap_remove().

This should get merged via linux-usb list.

Regards,

Tony

Quoted 24 lines
---
 drivers/usb/host/ehci-omap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-omap.c +1 -0
index 74d07f4..2460f0d 100644
@@ -681,6 +681,7 @@ static int ehci_hcd_omap_remove(struct platform_device *pdev)
 	iounmap(omap->tll_base);
 	iounmap(omap->uhh_base);
 	usb_put_hcd(hcd);
+	kfree(omap);
 
 	return 0;
 }
Signature · 6 lines
1.6.2.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 4 lines · ext Tony Lindgren
Quoted 1 line · Ajay Kumar Gupta

Added missing kfree() in ehci_hcd_omap_remove().

This should get merged via linux-usb list.

it was sent to Greg already, thanks

Signature · 1 line
balbi