diff options
| author | Chenyuan Mi <[email protected]> | 2023-06-14 15:01:18 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2023-06-20 23:55:35 +0000 |
| commit | 53fc25b7f557089aff101235152ae4bff15c428a (patch) | |
| tree | 864cba4e08d999ce2895599c9238ef0bdf05f9db /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf parse-events: Remove unneeded semicolon (diff) | |
| download | kernel-53fc25b7f557089aff101235152ae4bff15c428a.tar.gz kernel-53fc25b7f557089aff101235152ae4bff15c428a.zip | |
perf subcmd: Fix missing check for return value of malloc() in add_cmdname()
The malloc() function may return NULL when it fails,
which may cause null pointer deference in add_cmdname(),
add Null check for return value of malloc().
Found by our static analysis tool.
Signed-off-by: Chenyuan Mi <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
