]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: imx: composite-8m: Less function calls in __imx8m_clk_hw_composite() after error...
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 22 Dec 2023 15:48:24 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:25 +0000 (16:29 +0200)
commit554c590d229d8c789df4b2eaec487539a1894fd2
tree1a09a2d4e066730d27dd6fe4d26d7ddf1ebf111c
parentc2ee6de22dac61bbf406019b9f83455222413af3
clk: imx: composite-8m: Less function calls in __imx8m_clk_hw_composite() after error detection

[ Upstream commit fed6bf52c86df27ad4f39a72cdad8c27da9a50ba ]

The function “kfree” was called in up to three cases
by the function “__imx8m_clk_hw_composite” during error handling
even if the passed variables contained a null pointer.

Adjust jump targets according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/147ca1e6-69f3-4586-b5b3-b69f9574a862@web.de
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Stable-dep-of: 8f32e9dd0916 ("clk: imx: composite-8m: Enable gate clk with mcore_booted")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/imx/clk-composite-8m.c