aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-omap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-omap.c')
-rw-r--r--drivers/usb/host/ehci-omap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 7ba8df3c6d78..12f1ad2fd0e8 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -558,7 +558,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
558 omap = kzalloc(sizeof(*omap), GFP_KERNEL); 558 omap = kzalloc(sizeof(*omap), GFP_KERNEL);
559 if (!omap) { 559 if (!omap) {
560 ret = -ENOMEM; 560 ret = -ENOMEM;
561 goto err_create_hcd; 561 goto err_disabled;
562 } 562 }
563 563
564 hcd = usb_create_hcd(&ehci_omap_hc_driver, &pdev->dev, 564 hcd = usb_create_hcd(&ehci_omap_hc_driver, &pdev->dev,
@@ -653,6 +653,7 @@ err_ioremap:
653 usb_put_hcd(hcd); 653 usb_put_hcd(hcd);
654 654
655err_create_hcd: 655err_create_hcd:
656 kfree(omap);
656err_disabled: 657err_disabled:
657err_pdata: 658err_pdata:
658 return ret; 659 return ret;