aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2023-03-24 11:42:41 -0700
committerAlexei Starovoitov <[email protected]>2023-03-24 12:40:47 -0700
commit55fbae05476df65e5eee8be54f61d0257af0240b (patch)
tree32a0ed63009db5289dd0d5082e0b27c8440170a4 /tools/perf/scripts/python/task-analyzer.py
parent226bc6ae6405c46a6e9865835c36a1d45fc0b3bf (diff)
bpf: Check IS_ERR for the bpf_map_get() return value
This patch fixes a mistake in checking NULL instead of checking IS_ERR for the bpf_map_get() return value. It also fixes the return value in link_update_map() from -EINVAL to PTR_ERR(*_map). Reported-by: [email protected] Fixes: 68b04864ca42 ("bpf: Create links for BPF struct_ops maps.") Fixes: aef56f2e918b ("bpf: Update the struct_ops of a bpf_link.") Signed-off-by: Martin KaFai Lau <[email protected]> Acked-by: Kui-Feng Lee <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions