From: Jinjie Ruan Date: Fri, 30 Aug 2024 02:07:56 +0000 (+0800) Subject: bpf: Use sockfd_put() helper X-Git-Tag: v6.12-rc1~112^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65ef66d918039c9e012437f2ec57f2bef76faf15;p=thirdparty%2Fkernel%2Flinux.git bpf: Use sockfd_put() helper Replace fput() with sockfd_put() in bpf_fd_reuseport_array_update_elem(). Signed-off-by: Jinjie Ruan Acked-by: Stanislav Fomichev Link: https://lore.kernel.org/r/20240830020756.607877-1-ruanjinjie@huawei.com Signed-off-by: Alexei Starovoitov --- diff --git a/kernel/bpf/reuseport_array.c b/kernel/bpf/reuseport_array.c index 4b4f9670f1a9a..49b8e5a0c6b4f 100644 --- 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; }