diff options
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 8577bb7f8be6..f98328abe8fa 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c | |||
@@ -1986,7 +1986,7 @@ static int bpf_map_get_fd_by_id(const union bpf_attr *attr) | |||
1986 | 1986 | ||
1987 | fd = bpf_map_new_fd(map, f_flags); | 1987 | fd = bpf_map_new_fd(map, f_flags); |
1988 | if (fd < 0) | 1988 | if (fd < 0) |
1989 | bpf_map_put(map); | 1989 | bpf_map_put_with_uref(map); |
1990 | 1990 | ||
1991 | return fd; | 1991 | return fd; |
1992 | } | 1992 | } |