Commit 65ef66d9 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Alexei Starovoitov

bpf: Use sockfd_put() helper

Replace fput() with sockfd_put() in bpf_fd_reuseport_array_update_elem().
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Acked-by: default avatarStanislav Fomichev <sdf@fomichev.me>
Link: https://lore.kernel.org/r/20240830020756.607877-1-ruanjinjie@huawei.comSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 1dd7622e
......@@ -308,7 +308,7 @@ int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
spin_unlock_bh(&reuseport_lock);
put_file:
fput(socket->file);
sockfd_put(socket);
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment