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

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


On Thu, 2023-10-19 at 06:55:37 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: 0b1039f016e8 ("mtd: rawnand: Add NAND controller support on Intel LGM SoC")
> 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-mtd mailing list