Skip to content

Commit 65ef66d

Browse files
ruanjinjie-engAlexei Starovoitov
authored andcommitted
bpf: Use sockfd_put() helper
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>
1 parent 1dd7622 commit 65ef66d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/bpf/reuseport_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
308308

309309
spin_unlock_bh(&reuseport_lock);
310310
put_file:
311-
fput(socket->file);
311+
sockfd_put(socket);
312312
return err;
313313
}
314314

0 commit comments

Comments
 (0)