Commit 5ee813da authored by Yi Yang's avatar Yi Yang Committed by Greg Kroah-Hartman
Browse files

mtd: rawnand: meson: check return value of devm_kasprintf()



[ Upstream commit 5a985960 ]

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: 1e4d3ba6 ("mtd: rawnand: meson: fix the clock")
Signed-off-by: default avatarYi Yang <yiyang13@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231019065548.318443-1-yiyang13@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b2a9ba69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment