diff options
| author | Ian Rogers <irogers@google.com> | 2026-03-03 02:45:15 +0300 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-03-03 04:13:19 +0300 |
| commit | d05073adda0f047e9b2115a2932bcb2797eab238 (patch) | |
| tree | 124d44ec5615a6859b2d138443ed7a44640b909d /scripts/Makefile.debug | |
| parent | 06ec44c2aa2ef15fd56f9808b6cf7495e1fbd8ec (diff) | |
| download | linux-d05073adda0f047e9b2115a2932bcb2797eab238.tar.xz | |
perf trace: Avoid an ERR_PTR in syscall_stats
hashmap__new may return an ERR_PTR and previously this would be
assigned to syscall_stats meaning all use of syscall_stats needs to
test for NULL (uninitialized) or an ERR_PTR. Given the only reason
hashmap__new can fail is ENOMEM, just use NULL to indicate the
allocation failure and avoid the code having to test for NULL and
IS_ERR.
Fixes: 96f202eab813 (perf trace: Fix IS_ERR() vs NULL check bug)
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/Makefile.debug')
0 files changed, 0 insertions, 0 deletions
