diff options
author | 2023-01-11 15:04:09 +0300 | |
---|---|---|
committer | 2023-01-24 18:19:36 -0500 | |
commit | 8b152e9150d07a885f95e1fd401fc81af202d9a4 (patch) | |
tree | 5787b6475acc7debb27187745182b92f7567a825 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tracing/osnoise: Use built-in RCU list checking (diff) | |
download | linux-rng-8b152e9150d07a885f95e1fd401fc81af202d9a4.tar.xz linux-rng-8b152e9150d07a885f95e1fd401fc81af202d9a4.zip |
trace_events_hist: add check for return value of 'create_hist_field'
Function 'create_hist_field' is called recursively at
trace_events_hist.c:1954 and can return NULL-value that's why we have
to check it to avoid null pointer dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Link: https://lkml.kernel.org/r/20230111120409.4111-1-n.petrova@fintech.ru
Cc: stable@vger.kernel.org
Fixes: 30350d65ac56 ("tracing: Add variable support to hist triggers")
Signed-off-by: Natalia Petrova <n.petrova@fintech.ru>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions