diff options
author | Claudiu Beznea <[email protected]> | 2023-06-15 13:25:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-06-19 17:13:24 +0200 |
commit | af2e19d82a116bc622eea84c9faadd5f7e20bec4 (patch) | |
tree | b7a6722252f5683cc057e89dc18693aada445193 /net/lapb/lapb_subr.c | |
parent | afc5fddd3937959b646011fe901360598f826a05 (diff) |
misc: fastrpc: 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: 3abe3ab3cdab ("misc: fastrpc: add secure domain support")
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions