WSL2-Linux-Kernel/drivers/clk/mmp
Kuan-Wei Chiu 54a84bad7b 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-02-23 08:54:48 +01:00
..
Makefile clk: mmp2: Add audio clock controller driver 2020-05-27 17:55:12 -07:00
clk-apbc.c clk: mmp: make clk_ops const 2017-11-01 23:25:47 -07:00
clk-apmu.c clk: mmp: make clk_ops const 2017-11-01 23:25:47 -07:00
clk-audio.c clk: mmp2: fix build without CONFIG_PM 2021-01-12 12:10:55 -08:00
clk-frac.c clk: mmp: frac: Allow setting bits other than the numerator/denominator 2020-05-27 17:55:11 -07:00
clk-gate.c clk: Remove CLK_IS_BASIC clk flag 2019-04-26 10:40:49 -07:00
clk-mix.c clk: mmp2: Constify some strings 2020-03-20 18:19:30 -07:00
clk-mmp2.c clk: mmp: Adjust checks for NULL pointers 2017-11-13 17:41:17 -08:00
clk-of-mmp2.c clk: mmp2: Fix the display clock divider base 2020-10-13 19:53:36 -07:00
clk-of-pxa168.c clk: mmp: pxa168: Fix memory leak in pxa168_clk_init() 2024-02-23 08:54:48 +01:00
clk-of-pxa910.c clk:mmp:clk-of-pxa910: Free memory and Unmap region obtained by kzmalloc and of_iomap 2016-12-08 16:29:38 -08:00
clk-of-pxa1928.c clk: mmp: pxa1928: drop unused 'clk' variable 2020-09-22 12:44:40 -07:00
clk-pll.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -07:00
clk-pxa168.c clk: mmp: avoid missing prototype warning 2020-07-29 12:52:40 -07:00
clk-pxa910.c clk: mmp: avoid missing prototype warning 2020-07-29 12:52:40 -07:00
clk.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -07:00
clk.h This time around we have 4 lines of diff in the core framework, removing a 2020-06-10 11:42:19 -07:00
pwr-island.c clk: mmp2: Add support for power islands 2020-05-27 17:55:12 -07:00
reset.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
reset.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00