diff options
| author | wangguangju <wangguangju@hygon.cn> | 2026-02-26 20:22:08 +0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-02-26 10:48:14 -0800 |
| commit | 96f202eab8133f94479b14a32902c636e9bdf6af (patch) | |
| tree | 07c1a4e52c7d33af5ee731ab50d2a2bd9da67f76 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 0feca0b788567debbaec6a9a329f5bee1b15c705 (diff) | |
perf trace: Fix IS_ERR() vs NULL check bug
The alloc_syscall_stats() function always returns an error pointer
(ERR_PTR) on failure.
So replace NULL check with IS_ERR() check after calling
delete_syscall_stats() function.
Fixes: ef2da619b132c6f74 ("perf trace: Convert syscall_stats to hashmap")
Signed-off-by: wangguangju <wangguangju@hygon.cn>
Reviewed-by: Howard Chu <howardchu95@gmail.com>
Acked-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
