projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd7622
)
bpf: Use sockfd_put() helper
author
Jinjie Ruan
<ruanjinjie@huawei.com>
Fri, 30 Aug 2024 02:07:56 +0000
(10:07 +0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 30 Aug 2024 15:57:47 +0000
(08:57 -0700)
Replace fput() with sockfd_put() in bpf_fd_reuseport_array_update_elem().
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link:
https://lore.kernel.org/r/20240830020756.607877-1-ruanjinjie@huawei.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/reuseport_array.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/reuseport_array.c
b/kernel/bpf/reuseport_array.c
index
4b4f967
..
49b8e5a
100644
(file)
--- a/
kernel/bpf/reuseport_array.c
+++ b/
kernel/bpf/reuseport_array.c
@@
-308,7
+308,7
@@
put_file_unlock:
spin_unlock_bh(&reuseport_lock);
put_file:
-
fput(socket->file
);
+
sockfd_put(socket
);
return err;
}