diff options
author | Yi Yang | 2023-10-19 06:55:37 +0000 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-11-28 17:07:03 +0000 |
commit | b2a9ba69dfd5892026e118b7f5c6820bdfb87578 (patch) | |
tree | 0d16a98b9ed987a2f954240e6e0feb27b08cd834 /drivers/mailbox | |
parent | 8d02b6fb3c67ddc0366770a491b464cc0e1dd3bf (diff) |
mtd: rawnand: intel: check return value of devm_kasprintf()
[ Upstream commit 74ac5b5e2375f1e8ef797ac7770887e9969f2516 ]
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: 0b1039f016e8 ("mtd: rawnand: Add NAND controller support on Intel LGM SoC")
Signed-off-by: Yi Yang <yiyang13@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231019065537.318391-1-yiyang13@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions