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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-apmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-audio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-frac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-gate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-mix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-mmp2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-of-mmp2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-of-pxa1928.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-pll.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-pxa168.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk-pxa910.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwr-island.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00