]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: fusbh200-hcd: fix error handling in fusbh200_hcd_fusbh200_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 21 May 2013 02:40:41 +0000 (10:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 18:48:03 +0000 (11:48 -0700)
Fix to release all resources when fusbh200_setup() fail instead of only
return error.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fusbh200-hcd.c

index 0855ca4caac69c35312a56593f1afa7688af4dcd..cb1f2fa0faf7e2966df9c512f725c501794ab083 100644 (file)
@@ -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);