[PATCH v2] mtd: powernv_flash: check return value of devm_kasprintf()

Miquel Raynal miquel.raynal at bootlin.com
Thu Oct 19 17:25:56 AEDT 2023

Hi Yi,

yiyang13 at huawei.com wrote on Thu, 19 Oct 2023 01:30:50 +0000:

> 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: acfe63ec1c59 ("mtd: Convert to using %pOFn instead of device_node.name")
> Signed-off-by: Yi Yang <yiyang13 at huawei.com>

Please re-read my previous answer and address all comments.


More information about the Linuxppc-dev mailing list