diff options
author | Miaoqian Lin <[email protected]> | 2021-12-11 05:38:53 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-12-11 08:23:54 -0300 |
commit | 9937e8daab29d9e20de6b7bc56c76db7a4eeda69 (patch) | |
tree | 374a250882e60ed2c09f9dfef064d8d78b7f11ca /lib/memory-notifier-error-inject.c | |
parent | 6665b8e4836caa8023cbc7e53733acd234969c8c (diff) |
perf python: Fix NULL vs IS_ERR_OR_NULL() checking
The function trace_event__tp_format_id may return ERR_PTR(-ENOMEM). Use
IS_ERR_OR_NULL to check tp_format.
Signed-off-by: Miaoqian Lin <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Song Liu <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions