[PATCH] mtd: powernv: Add check devm_kasprintf() returned value

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 6 08:10:24 PDT 2024


On Wed, 2024-08-28 at 09:24:27 UTC, Charles Han wrote:
> devm_kasprintf() can return a NULL pointer on failure but this
> returned value is not checked.
> 
> Fixes: acfe63ec1c59 ("mtd: Convert to using %pOFn instead of device_node.name")
> Signed-off-by: Charles Han <hanchunchao at inspur.com>

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

Miquel



More information about the linux-mtd mailing list