aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorClaudiu Beznea <[email protected]>2023-05-30 12:39:11 +0300
committerStephen Boyd <[email protected]>2023-06-16 21:52:50 -0700
commitb73ed981da6d25c921aaefa7ca3df85bbd85b7fc (patch)
treeab621879184afa777ab111d01eae7939590b0a85 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parent267ad94b13c53d8c99a336f0841b1fa1595b1d0f (diff)
clk: keystone: sci-clk: check return value of 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: b745c0794e2f ("clk: keystone: Add sci-clk driver support") Depends-on: 96488c09b0f4 ("clk: keystone: sci-clk: cut down the clock name length") Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Tony Lindgren <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions