diff options
author | Ilkka Koskinen <[email protected]> | 2024-02-23 14:04:58 -0800 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-02-26 08:30:17 -0800 |
commit | bae4d1f86e4d6750d2fc11e040c7d49b180c4b8d (patch) | |
tree | 58637f6874f93b9092ea8d357faae6c903e1b50e /net/lapb/lapb_in.c | |
parent | 529d5818a3bb0272ced031e022e4b41d6410a4da (diff) |
perf data convert: Fix segfault when converting to json when cpu_desc isn't set
Arm64 doesn't have Model in /proc/cpuinfo and, thus, cpu_desc doesn't get
assigned.
Running
$ perf data convert --to-json perf.data.json
ends up calling output_json_string() with NULL pointer, which causes a
segmentation fault.
Signed-off-by: Ilkka Koskinen <[email protected]>
Acked-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: James Clark <[email protected]>
Cc: Evgeny Pistun <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions