Skip to content

Commit 0b2b149

Browse files
Zhen Leigregkh
authored andcommitted
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: 6dd2565 ("usb: dwc3: add imx8mp dwc3 glue layer driver") Reported-by: Hulk Robot <hulkci@huawei.com> Acked-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210508015310.1627-1-thunder.leizhen@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b969920 commit 0b2b149

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/dwc3/dwc3-imx8mp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev)
167167

168168
dwc3_np = of_get_compatible_child(node, "snps,dwc3");
169169
if (!dwc3_np) {
170+
err = -ENODEV;
170171
dev_err(dev, "failed to find dwc3 core child\n");
171172
goto disable_rpm;
172173
}

0 commit comments

Comments
 (0)