Browse Source

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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Wei Yongjun 12 years ago
parent
commit
244435b8ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/host/fusbh200-hcd.c

+ 1 - 1
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);