[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250124015106.2226585-1-buaajxlj@163.com>
Date: Fri, 24 Jan 2025 09:51:06 +0800
From: Liang Jie <buaajxlj@....com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>,
Jakub Kicinski <kuba@...nel.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Michal Luczaj <mhal@...x.co>,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Liang Jie <liangjie@...iang.com>
Subject: [PATCH net] af_unix: Correct comment to reference kfree_skb_reason hook
From: Liang Jie <liangjie@...iang.com>
The comment in unix_release_sock has been updated to correctly reference
kfree_skb_reason instead of kfree_skb, for clarity on how passed file
descriptors are handled during socket closure.
Fixes: c32f0bd7d483 ("af_unix: Set drop reason in unix_release_sock().")
Signed-off-by: Liang Jie <liangjie@...iang.com>
---
net/unix/af_unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 34945de1fb1f..47dd3749ce32 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -717,7 +717,7 @@ static void unix_release_sock(struct sock *sk, int embrion)
if (state == TCP_LISTEN)
unix_release_sock(skb->sk, 1);
- /* passed fds are erased in the kfree_skb hook */
+ /* passed fds are erased in the kfree_skb_reason hook */
kfree_skb_reason(skb, SKB_DROP_REASON_SOCKET_CLOSE);
}
--
2.25.1
Powered by blists - more mailing lists