Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 244435b8 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5462b0db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);