Skip to content

Commit 65ef66d

Browse files
Jinjie RuanAlexei 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 <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 1dd7622 commit 65ef66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)