diff options
author | Claudiu Beznea <[email protected]> | 2023-05-30 12:39:09 +0300 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-06-16 21:52:50 -0700 |
commit | 36e4ef82016a2b785cf2317eade77e76699b7bff (patch) | |
tree | 27e9638f70c62e60ae99de3db33626349941b79a /lib/mpi/mpi-inline.h | |
parent | 2560114c06d7a752b3f4639f28cece58fed11267 (diff) |
clk: si5341: check return value of {devm_}kasprintf()
{devm_}kasprintf() returns a pointer to dynamically allocated memory.
Pointer could be NULL in case allocation fails. Check pointer validity.
Identified with coccinelle (kmerr.cocci script).
Fixes: 3044a860fd09 ("clk: Add Si5341/Si5340 driver")
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions