Skip to content

Commit 85d4cf5

Browse files
fazlamehrabkuba-moo
authored andcommitted
net/handshake: use sockfd_put() helper
Replace fput() with sockfd_put() in handshake_nl_done_doit(). Signed-off-by: A K M Fazla Mehrab <[email protected]> Reviewed-by: Chuck Lever <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3410d0e commit 85d4cf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/handshake/netlink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int handshake_nl_done_doit(struct sk_buff *skb, struct genl_info *info)
153153
if (!req) {
154154
err = -EBUSY;
155155
trace_handshake_cmd_done_err(net, req, sock->sk, err);
156-
fput(sock->file);
156+
sockfd_put(sock);
157157
return err;
158158
}
159159

@@ -164,7 +164,7 @@ int handshake_nl_done_doit(struct sk_buff *skb, struct genl_info *info)
164164
status = nla_get_u32(info->attrs[HANDSHAKE_A_DONE_STATUS]);
165165

166166
handshake_complete(req, status, info);
167-
fput(sock->file);
167+
sockfd_put(sock);
168168
return 0;
169169
}
170170

0 commit comments

Comments
 (0)