提交 244435b8 编写于 作者: W Wei Yongjun 提交者: Greg Kroah-Hartman

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5462b0db
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册