From: Peiwei Hu Date: Tue, 28 Dec 2021 10:01:03 +0000 (+0800) Subject: firmware: ti_sci: inproper error handling of ti_sci_probe X-Git-Tag: v5.18-rc1~146^2~11^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a181bcfca937b34467e6cd63d7de6073176616e1;p=linux-block.git firmware: ti_sci: inproper error handling of ti_sci_probe goto out instead of returning directly in error exiting Signed-off-by: Peiwei Hu Signed-off-by: Nishanth Menon Link: https://lore.kernel.org/r/tencent_0D5124AF8235001703711A7A09703F918806@qq.com --- diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 5ae2040b8b02..4697edc125b1 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -3412,7 +3412,7 @@ static int ti_sci_probe(struct platform_device *pdev) ret = register_restart_handler(&info->nb); if (ret) { dev_err(dev, "reboot registration fail(%d)\n", ret); - return ret; + goto out; } }