diff options
author | Yi Yang | 2023-10-19 06:55:48 +0000 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-11-28 17:07:03 +0000 |
commit | 5ee813da0c18800da7dbee3ded453ef321e9bc51 (patch) | |
tree | e87c0add80e9ee952d5e4c4d871578777983d360 /drivers/mailbox | |
parent | b2a9ba69dfd5892026e118b7f5c6820bdfb87578 (diff) |
mtd: rawnand: meson: check return value of devm_kasprintf()
[ Upstream commit 5a985960a4dd041c21dbe9956958c1633d2da706 ]
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: 1e4d3ba66888 ("mtd: rawnand: meson: fix the clock")
Signed-off-by: Yi Yang <yiyang13@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231019065548.318443-1-yiyang13@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions