From 244435b8eecba7bb8b791350de3f08e638a331f2 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Tue, 21 May 2013 10:40:41 +0800 Subject: [PATCH] usb: fusbh200-hcd: fix error handling in fusbh200_hcd_fusbh200_probe() Fix to release all resources when fusbh200_setup() fail instead of only return error. Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/fusbh200-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c index 0855ca4caac6..cb1f2fa0faf7 100644 --- a/drivers/usb/host/fusbh200-hcd.c +++ b/drivers/usb/host/fusbh200-hcd.c @@ -5864,7 +5864,7 @@ static int fusbh200_hcd_fusbh200_probe(struct platform_device *pdev) retval = fusbh200_setup(hcd); if (retval) - return retval; + goto fail_add_hcd; fusbh200_init(fusbh200); -- 2.39.5