aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorCarlos López <clopez@suse.de>2024-05-27 11:43:52 +0200
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2024-05-27 21:32:35 +0900
commite569eb34970281438e2b48a3ef11c87459fcfbcb (patch)
tree77dd40ae3cd73360c2fb250b2d3b2984cd11efcf /scripts/gdb/linux/mm.py
parent699646734ab51bf5b1cd4a7a30c20074f6e74f6e (diff)
tracing/probes: fix error check in parse_btf_field()
btf_find_struct_member() might return NULL or an error via the ERR_PTR() macro. However, its caller in parse_btf_field() only checks for the NULL condition. Fix this by using IS_ERR() and returning the error up the stack. Link: https://lore.kernel.org/all/20240527094351.15687-1-clopez@suse.de/ Fixes: c440adfbe3025 ("tracing/probes: Support BTF based data structure field access") Signed-off-by: Carlos López <clopez@suse.de> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions