aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPeng Sun <sironhide0null@gmail.com>2019-02-26 22:15:37 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-02-26 19:08:30 +0100
commit781e62823cb81b972dc8652c1827205cda2ac9ac (patch)
tree7f97f6e117edfd62175df6776a0c208c9325988d /tools/perf/scripts/python/export-to-sqlite.py
parentnet: avoid use IPCB in cipso_v4_error (diff)
downloadlinux-rng-781e62823cb81b972dc8652c1827205cda2ac9ac.tar.xz
linux-rng-781e62823cb81b972dc8652c1827205cda2ac9ac.zip
bpf: decrease usercnt if bpf_map_new_fd() fails in bpf_map_get_fd_by_id()
In bpf/syscall.c, bpf_map_get_fd_by_id() use bpf_map_inc_not_zero() to increase the refcount, both map->refcnt and map->usercnt. Then, if bpf_map_new_fd() fails, should handle map->usercnt too. Fixes: bd5f5f4ecb78 ("bpf: Add BPF_MAP_GET_FD_BY_ID") Signed-off-by: Peng Sun <sironhide0null@gmail.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions