diff options
author | 2022-10-12 11:22:58 +0300 | |
---|---|---|
committer | 2022-10-15 10:13:16 -0300 | |
commit | 5a3d47071f0ced0431ef82a5fb6bd077ed9493db (patch) | |
tree | 5874f96c8a47395e7c3742d610dea2bffea5e628 /scripts/generate_rust_analyzer.py | |
parent | perf test: Fix attr tests for PERF_FORMAT_LOST (diff) | |
download | wireguard-linux-5a3d47071f0ced0431ef82a5fb6bd077ed9493db.tar.xz wireguard-linux-5a3d47071f0ced0431ef82a5fb6bd077ed9493db.zip |
perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc
uClibc segfaulted because NULL was passed as the format to fprintf().
That happened because one of the format strings was missing and
intel_pt_print_info() didn't check that before calling fprintf().
Add the missing format string, and check format is not NULL before calling
fprintf().
Fixes: 11fa7cb86b56d361 ("perf tools: Pass Intel PT information for decoding MTC and CYC")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221012082259.22394-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions