diff options
author | Wan Jiabing <[email protected]> | 2022-04-29 18:28:10 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2022-05-26 15:18:28 -0400 |
commit | 2a6b52ed72c822b5ee146a6a00ea66614fe02653 (patch) | |
tree | 4089f0e2dc8b2c4cc3099be89ed60d40f466b893 /scripts/gdb/linux/timerlist.py | |
parent | fe4d0d5dde457bb5832b866418b5036f4f0c8d13 (diff) |
rtla: Avoid record NULL pointer dereference
Fix the following null/deref_null.cocci errors:
./tools/tracing/rtla/src/osnoise_hist.c:870:31-36: ERROR: record is NULL but dereferenced.
./tools/tracing/rtla/src/osnoise_top.c:650:31-36: ERROR: record is NULL but dereferenced.
./tools/tracing/rtla/src/timerlat_hist.c:905:31-36: ERROR: record is NULL but dereferenced.
./tools/tracing/rtla/src/timerlat_top.c:700:31-36: ERROR: record is NULL but dereferenced.
"record" is NULL before calling osnoise_init_trace_tool.
Add a tag "out_free" to avoid dereferring a NULL pointer.
Link: https://lkml.kernel.org/r/ae0e4500d383db0884eb2820286afe34ca303778.1651247710.git.bristot@kernel.org
Link: https://lore.kernel.org/r/[email protected]/
Cc: [email protected]
Cc: Daniel Bristot de Oliveira <[email protected]>
Fixes: 51d64c3a1819 ("rtla: Add -e/--event support")
Acked-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Wan Jiabing <[email protected]>
Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions