kcm: Destroy mutex in kcm_exit_net()
authorShigeru Yoshida <syoshida@redhat.com>
Sat, 2 Sep 2023 17:07:08 +0000 (02:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:28:02 +0000 (12:28 +0200)
commite30388b80d2356dc42a748aa33903b84ecd84ad7
tree017e4f436d40146e059b99b451b57a0da9b881bf
parenta18349dc8d916a64d7c93f05da98953e3386d8e9
kcm: Destroy mutex in kcm_exit_net()

[ Upstream commit 6ad40b36cd3b04209e2d6c89d252c873d8082a59 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/kcm/kcmsock.c