mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-12 13:03:18 -04: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 <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202607031656.FR3Xrved-lkp@intel.com/
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://patch.msgid.link/20260710070834.2744357-1-xu.yang_2@oss.nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2c5659a706
commit
1db5c6b0b9
@@ -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