mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
usb: chipidea: imx: fix missing ret assignment for dev_err_probe
Assign the return value of dev_err_probe() to ret so that the correct
error code is propagated when goto err_clk is taken.
Fixes: 2e9762f45e ("usb: chipidea: ci_hdrc_imx: use "wakeup" suffix for wakeup interrupt name")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Xu Yang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
2c5659a706
commit
1db5c6b0b9
1 file changed
+1
-1
@@ -528,7 +528,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
|
||||
if (data->wakeup_irq > 0) {
|
||||
irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s:wakeup", pdata.name);
|
||||
if (!irq_name) {
|
||||
dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
|
||||
ret = dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
|
||||
goto err_clk;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user