[PATCH v2] mtd: powernv_flash: check return value of devm_kasprintf()
Miquel Raynal
miquel.raynal at bootlin.com
Wed Oct 18 23:25:56 PDT 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.
Thanks,
Miquèl
More information about the linux-mtd
mailing list