diff options
| author | Miaoqian Lin <[email protected]> | 2021-12-14 01:10:27 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-12-28 20:26:25 +0000 |
| commit | 9f3c16a430e8ac6b8211da106f4e4841d896ec99 (patch) | |
| tree | 96e3de225e23465169ae5befe385d7a9d7ad270a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | Merge tag 'auxdisplay-for-linus-v5.16' of git://github.com/ojeda/linux (diff) | |
| download | kernel-9f3c16a430e8ac6b8211da106f4e4841d896ec99.tar.gz kernel-9f3c16a430e8ac6b8211da106f4e4841d896ec99.zip | |
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 <[email protected]>
Reviewed-by: German Gomez <[email protected]>
Tested-by: German Gomez <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
