aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorClaudiu Beznea <[email protected]>2023-05-30 12:39:06 +0300
committerStephen Boyd <[email protected]>2023-06-16 21:52:49 -0700
commit144601f6228de5598f03e693822b60a95c367a17 (patch)
tree36c8fafc28ee4db3edb53905e11c0c3163c0d5b4 /lib/mpi/mpi-inline.h
parentac9a78681b921877518763ba0e89202254349d1b (diff)
clk: vc5: check memory returned by kasprintf()
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: f491276a5168 ("clk: vc5: Allow Versaclock driver to support multiple instances") Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Luca Ceresoli <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions