diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2021-12-14 04:10:27 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-12-28 23:26:25 +0300 |
commit | 9f3c16a430e8ac6b8211da106f4e4841d896ec99 (patch) | |
tree | 96e3de225e23465169ae5befe385d7a9d7ad270a /tools/perf/util/intel-pt.c | |
parent | ecf71de775a049cbfa6298deceb8ba2083331171 (diff) | |
download | linux-9f3c16a430e8ac6b8211da106f4e4841d896ec99.tar.xz |
perf expr: Fix return value of ids__new()
callers of ids__new() function only do NULL checking for the return
value. ids__new() calles hashmap__new(), which may return
ERR_PTR(-ENOMEM).
Instead of changing the checking one-by-one return NULL instead of
ERR_PTR(-ENOMEM) to keep it consistent.
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: German Gomez <german.gomez@arm.com>
Tested-by: German Gomez <german.gomez@arm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20211214011030.20200-1-linmq006@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/intel-pt.c')
0 files changed, 0 insertions, 0 deletions