Commit 199e6664 authored by Peng Fan's avatar Peng Fan Committed by Greg Kroah-Hartman
Browse files

clk: imx: avoid memory leak



[ Upstream commit f4419db4 ]

In case imx_register_uart_clocks return early, the imx_uart_clocks
memory will be no freed. So execute kfree always to avoid memory leak.

Fixes: 379c9a24 ("clk: imx: Fix reparenting of UARTs not associated with stdout")
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230104110032.1220721-2-peng.fan@oss.nxp.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 94957e54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment