[PATCH 7/8] clk: ti: clkctrl: check return value of kasprintf()

Tony Lindgren tony at atomide.com
Tue May 30 21:12:06 PDT 2023


* Claudiu Beznea <claudiu.beznea at microchip.com> [230530 09:41]:
> 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).

Reviewed-by: Tony Lindgren <tony at atomide.com>



More information about the linux-arm-kernel mailing list