[PATCH 8/8] clk: clocking-wizard: check return value of devm_kasprintf()

Stephen Boyd sboyd at kernel.org
Tue Jun 20 11:55:55 PDT 2023


Quoting Claudiu Beznea (2023-05-30 02:39:13)
> devm_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: 2046338dcbc6 ("ARM: mxs: Use soc bus infrastructure")
> Signed-off-by: Claudiu Beznea <claudiu.beznea at microchip.com>
> ---

Applied to clk-next



More information about the linux-arm-kernel mailing list