usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()
Subsystems (3)
PATCH 1/1 usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.
Fixes 6dd2565989b4 ("usb: dwc3: add imx8mp dwc3 glue layer driver")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zhen Lei <[email protected]>
--- drivers/usb/dwc3/dwc3-imx8mp.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/dwc3/dwc3-imx8mp.c +1 -0
@@ -167,6 +167,7 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev) dwc3_np =of_get_child_by_name (node,"dwc3" );if (!dwc3_np) { + err = -ENODEV ;dev_err (dev,"failed to find dwc3 core child\n" ); goto disable_rpm; }
Signature · 1 line
2.25.1
Quoted 6 lines · Zhen Lei
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function.
Fixes 6dd2565989b4 ("usb: dwc3: add imx8mp dwc3 glue layer driver")Reported-by Hulk Robot <[email protected]>Signed-off-by Zhen Lei <[email protected]>
Acked-by Felipe Balbi <[email protected]>
Signature · 1 line
balbi
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel