linux-yocto/drivers/clk/mmp
Kuan-Wei Chiu ec74a45e80 clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
[ Upstream commit 2fbabea626 ]

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-02-05 20:12:56 +00: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-02-05 20:12:56 +00: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