* [PATCH net] kcm: Destroy mutex in kcm_exit_net()
@ 2023-09-02 17:07 Shigeru Yoshida
2023-09-05 8:23 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Shigeru Yoshida @ 2023-09-02 17:07 UTC (permalink / raw)
To: davem, edumazet, kuba, pabeni; +Cc: netdev, linux-kernel, Shigeru Yoshida
kcm_exit_net() should call mutex_destroy() on knet->mutex. This is especially
needed if CONFIG_DEBUG_MUTEXES is enabled.
Fixes: ab7ac4eb9832 ("kcm: Kernel Connection Multiplexor module")
Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
---
net/kcm/kcmsock.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c
index 393f01b2a7e6..4580f61426bb 100644
--- a/net/kcm/kcmsock.c
+++ b/net/kcm/kcmsock.c
@@ -1859,6 +1859,8 @@ static __net_exit void kcm_exit_net(struct net *net)
* that all multiplexors and psocks have been destroyed.
*/
WARN_ON(!list_empty(&knet->mux_list));
+
+ mutex_destroy(&knet->mutex);
}
static struct pernet_operations kcm_net_ops = {
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] kcm: Destroy mutex in kcm_exit_net()
2023-09-02 17:07 [PATCH net] kcm: Destroy mutex in kcm_exit_net() Shigeru Yoshida
@ 2023-09-05 8:23 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-09-05 8:23 UTC (permalink / raw)
To: Shigeru Yoshida; +Cc: davem, edumazet, kuba, pabeni, netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Sun, 3 Sep 2023 02:07:08 +0900 you wrote:
> kcm_exit_net() should call mutex_destroy() on knet->mutex. This is especially
> needed if CONFIG_DEBUG_MUTEXES is enabled.
>
> Fixes: ab7ac4eb9832 ("kcm: Kernel Connection Multiplexor module")
> Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
> ---
> net/kcm/kcmsock.c | 2 ++
> 1 file changed, 2 insertions(+)
Here is the summary with links:
- [net] kcm: Destroy mutex in kcm_exit_net()
https://git.kernel.org/netdev/net/c/6ad40b36cd3b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-05 8:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-02 17:07 [PATCH net] kcm: Destroy mutex in kcm_exit_net() Shigeru Yoshida
2023-09-05 8:23 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).