diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-21 10:40:41 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 11:48:03 -0700 |
commit | 244435b8eecba7bb8b791350de3f08e638a331f2 (patch) | |
tree | e721493dc251d0fbb138b808d4b5c798858730d5 /drivers | |
parent | 5462b0db83dfe9152e48c2e14bf84bd855732e20 (diff) | |
download | linux-244435b8eecba7bb8b791350de3f08e638a331f2.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/fusbh200-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |