mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
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>
This commit is contained in:
parent
5462b0db83
commit
244435b8ee
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user