usb: host: ehci: fix missing kfree in remove path also
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Mon, 28 Dec 2009 11:40:45 +0000 (13:40 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:49 +0000 (14:53 -0800)
Added missing kfree() in ehci_hcd_omap_remove().

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-omap.c

index 74d07f4e8b7d48d74f9ea119d350ab6aed8a2dd1..2460f0d82990a996e8994336b64410b12d5f2ffb 100644 (file)
@@ -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;
 }