projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fc134f
)
kcm: Destroy mutex in kcm_exit_net()
author
Shigeru Yoshida
<syoshida@redhat.com>
Sat, 2 Sep 2023 17:07:08 +0000
(
02:07
+0900)
committer
Paolo Abeni
<pabeni@redhat.com>
Tue, 5 Sep 2023 08:12:03 +0000
(10:12 +0200)
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>
Link:
https://lore.kernel.org/r/20230902170708.1727999-1-syoshida@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/kcm/kcmsock.c
patch
|
blob
|
history
diff --git
a/net/kcm/kcmsock.c
b/net/kcm/kcmsock.c
index
393f01b
..
4580f61
100644
(file)
--- 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 = {