kernel_samsung_a53x/drivers/clk/mmp
Kuan-Wei Chiu 0c111cd81f clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
[ Upstream commit 2fbabea626b6467eb4e6c4cb7a16523da12e43b4 ]

In cases where mapping of mpmu/apmu/apbc registers fails, the code path
does not handle the failure gracefully, potentially leading to a memory
leak. This fix ensures proper cleanup by freeing the allocated memory
for 'pxa_unit' before returning.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Link: https://lore.kernel.org/r/20231210175232.3414584-1-visitorckw@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:18 +01:00
..
clk-apbc.c
clk-apmu.c
clk-audio.c
clk-frac.c
clk-gate.c
clk-mix.c
clk-mmp2.c
clk-of-mmp2.c
clk-of-pxa168.c clk: mmp: pxa168: Fix memory leak in pxa168_clk_init() 2024-11-18 12:13:18 +01:00
clk-of-pxa910.c
clk-of-pxa1928.c
clk-pll.c
clk-pxa168.c
clk-pxa910.c
clk.c
clk.h
Makefile
pwr-island.c
reset.c
reset.h