summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorA K M Fazla Mehrab <a.mehrab@bytedance.com>2024-08-26 18:26:52 +0000
committerJakub Kicinski <kuba@kernel.org>2024-08-27 16:09:25 -0700
commit85d4cf56e95ae0bb381587f229420a0eb6ab1d0a (patch)
tree29ddada3ffa40929087bd31c1eeafd58ccfd6c7c /net
parent3410d0e14f9a6856386c6a8eb2310cbc58191777 (diff)
net/handshake: use sockfd_put() helper
Replace fput() with sockfd_put() in handshake_nl_done_doit(). Signed-off-by: A K M Fazla Mehrab <a.mehrab@bytedance.com> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Link: https://patch.msgid.link/20240826182652.2449359-1-a.mehrab@bytedance.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/handshake/netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/handshake/netlink.c b/net/handshake/netlink.c
index 89637e732866..7e46d130dce2 100644
--- a/net/handshake/netlink.c
+++ b/net/handshake/netlink.c
@@ -153,7 +153,7 @@ int handshake_nl_done_doit(struct sk_buff *skb, struct genl_info *info)
if (!req) {
err = -EBUSY;
trace_handshake_cmd_done_err(net, req, sock->sk, err);
- fput(sock->file);
+ sockfd_put(sock);
return err;
}
@@ -164,7 +164,7 @@ int handshake_nl_done_doit(struct sk_buff *skb, struct genl_info *info)
status = nla_get_u32(info->attrs[HANDSHAKE_A_DONE_STATUS]);
handshake_complete(req, status, info);
- fput(sock->file);
+ sockfd_put(sock);
return 0;
}