mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
1dd7622ef5
commit
65ef66d918
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ put_file_unlock:
|
|||
|
||||
spin_unlock_bh(&reuseport_lock);
|
||||
put_file:
|
||||
fput(socket->file);
|
||||
sockfd_put(socket);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue