linux/drivers/clk/mmp
Kuan-Wei Chiu 2fbabea626 clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
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>
2023-12-16 17:15:06 -08:00
..
clk-apbc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-apmu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-audio.c clk: mmp2: Move number of clocks to driver source 2023-08-22 14:13:45 -07:00
clk-frac.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-gate.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-mix.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-of-mmp2.c clk: mmp2: Move number of clocks to driver source 2023-08-22 14:13:45 -07:00
clk-of-pxa168.c clk: mmp: pxa168: Fix memory leak in pxa168_clk_init() 2023-12-16 17:15:06 -08:00
clk-of-pxa910.c clk: pxa910: Move number of clocks to driver source 2023-08-22 14:14:17 -07:00
clk-of-pxa1928.c clk: pxa1928: Move number of clocks to driver source 2023-08-22 14:14:14 -07:00
clk-pll.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -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
Makefile clk: mmp: Remove old non-OF clock drivers 2023-08-22 14:13:11 -07:00
pwr-island.c clk: cleanup comments 2022-03-11 18:22:15 -08:00
reset.c
reset.h