diff options
author | Yi Yang <[email protected]> | 2023-10-19 06:55:48 +0000 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2023-10-27 19:43:20 +0200 |
commit | 5a985960a4dd041c21dbe9956958c1633d2da706 (patch) | |
tree | f458358c3eeeece63bf19cccffbd39ea1be7fa2a /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 74ac5b5e2375f1e8ef797ac7770887e9969f2516 (diff) |
mtd: rawnand: meson: check return value of devm_kasprintf()
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 <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions