summaryrefslogtreecommitdiffstats
path: root/arch/mips/net
diff options
context:
space:
mode:
authorPeng Sun <sironhide0null@gmail.com>2019-02-27 22:36:25 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-03-01 16:04:29 +0100
commit352d20d611414715353ee65fc206ee57ab1a6984 (patch)
treec856f1153a8c8551c974aa908088bdd1fe6499ac /arch/mips/net
parent781e62823cb81b972dc8652c1827205cda2ac9ac (diff)
downloadlinux-0-day-352d20d611414715353ee65fc206ee57ab1a6984.tar.gz
linux-0-day-352d20d611414715353ee65fc206ee57ab1a6984.tar.xz
bpf: drop refcount if bpf_map_new_fd() fails in map_create()
In bpf/syscall.c, map_create() first set map->usercnt to 1, a file descriptor is supposed to return to userspace. When bpf_map_new_fd() fails, drop the refcount. 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: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/mips/net')
0 files changed, 0 insertions, 0 deletions