[PATCH v3] mtd: rawnand: meson: check return value of devm_kasprintf()

Miquel Raynal miquel.raynal at bootlin.com
Fri Oct 27 10:47:16 PDT 2023


On Thu, 2023-10-19 at 06:55:48 UTC, Yi Yang wrote:
> devm_kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure. Ensure the allocation was successful by
> checking the pointer validity.
> 
> Fixes: 1e4d3ba66888 ("mtd: rawnand: meson: fix the clock")
> Signed-off-by: Yi Yang <yiyang13 at huawei.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-amlogic mailing list