2021-12-28 10:01:25

by Peiwei Hu

[permalink] [raw]
Subject: [PATCH] firmware: ti_sci: inproper error handling of ti_sci_probe

goto out instead of returning directly in error exiting

Signed-off-by: Peiwei Hu <[email protected]>
---
drivers/firmware/ti_sci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
index 235c7e7869aa..4500456a9a27 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;
}
}

--
2.25.1



2022-02-04 23:03:38

by Nishanth Menon

[permalink] [raw]
Subject: Re: [PATCH] firmware: ti_sci: inproper error handling of ti_sci_probe

Hi Peiwei Hu,

On Tue, 28 Dec 2021 18:01:03 +0800, Peiwei Hu wrote:
> goto out instead of returning directly in error exiting
>
>

I have applied the following to branch ti-drivers-soc-next on [1].
Thank you!

[1/1] firmware: ti_sci: inproper error handling of ti_sci_probe
commit: a181bcfca937b34467e6cd63d7de6073176616e1

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D