linux-stable/drivers/clk/ti
Claudiu Beznea 8ca6b2add2 clk: ti: clkctrl: check return value of kasprintf()
[ Upstream commit bd46cd0b80 ]

kasprintf() returns a pointer to dynamically allocated memory.
Pointer could be NULL in case allocation fails. Check pointer validity.
Identified with coccinelle (kmerr.cocci script).

Fixes: 852049594b ("clk: ti: clkctrl: convert subclocks to use proper names also")
Fixes: 6c30905205 ("clk: ti: clkctrl: Fix hidden dependency to node name")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230530093913.1656095-8-claudiu.beznea@microchip.com
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-23 13:47:09 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
adpll.c drivers: ti: remove redundant error message in adpll.c 2021-06-27 19:56:45 -07:00
apll.c
autoidle.c clk: ti: autoidle: add checks against NULL pointer reference 2020-09-22 13:00:07 -07:00
clk-2xxx.c
clk-3xxx.c
clk-7xx-compat.c
clk-7xx.c clk: ti: dra7: Drop idlest polling from IVA clkctrl clocks 2020-11-19 15:09:00 +02:00
clk-33xx-compat.c
clk-33xx.c clk: ti: am33xx: Keep am3 l3 main clock always on for genpd 2020-11-16 12:57:29 +02:00
clk-43xx-compat.c
clk-43xx.c clk: ti: am437x: Keep am4 l3 main clock always on for genpd 2020-11-16 13:00:20 +02:00
clk-44xx.c Revert "clk: ti: Stop using legacy clkctrl names for omap4 and 5" 2022-10-12 09:53:28 +02:00
clk-54xx.c Revert "clk: ti: Stop using legacy clkctrl names for omap4 and 5" 2022-10-12 09:53:28 +02:00
clk-814x.c clk: ti: Fix dm814x clkctrl for ethernet 2020-03-17 09:45:24 -07:00
clk-816x.c clk: ti: dm816: enable sysclk6_ck on init 2020-05-19 09:38:03 -07:00
clk-dra7-atl.c clk: ti: dra7-atl: Fix reference leak in of_dra7_atl_clk_probe 2022-10-26 12:35:20 +02:00
clk.c clk: ti: Preserve node in ti_dt_clocks_register() 2022-04-13 20:59:12 +02:00
clkctrl.c clk: ti: clkctrl: check return value of kasprintf() 2023-07-23 13:47:09 +02:00
clkt_dflt.c
clkt_dpll.c clk: ti: clkt_dpll: Fix some kernel-doc misdemeanours 2021-02-10 19:42:41 -08:00
clkt_iclk.c
clock.h
clockdomain.c clk: ti: clockdomain: Fix description for 'omap2_init_clk_clkdm's hw param 2021-02-11 11:56:07 -08:00
composite.c clk: ti: composite: fix memory leak 2020-05-14 12:54:41 -07:00
divider.c
dpll.c clk: ti: add am33xx/am43xx spread spectrum clock support 2021-06-08 17:49:16 -07:00
dpll3xxx.c clk: ti: add am33xx/am43xx spread spectrum clock support 2021-06-08 17:49:16 -07:00
dpll44xx.c clk: ti: dpll44xx: Fix some potential doc-rot 2021-02-11 11:56:05 -08:00
fapll.c clk: ti: Fix memleak in ti_fapll_synth_setup 2020-12-17 01:46:37 -08:00
fixed-factor.c
gate.c clk: ti: gate: Fix possible doc-rot in 'omap36xx_gate_clk_enable_with_hsdiv_restore' 2021-02-11 11:56:07 -08:00
interface.c
mux.c