diff mbox

ehci: fix missing kfree in remove path also

Message ID 1260970570-28536-1-git-send-email-ajay.gupta@ti.com (mailing list archive)
State Awaiting Upstream, archived
Headers show

Commit Message

Ajay Kumar Gupta Dec. 16, 2009, 1:36 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 74d07f4..2460f0d 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -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;
 }