kcm: Destroy mutex in kcm_exit_net()
authorShigeru Yoshida <syoshida@redhat.com>
Sat, 2 Sep 2023 17:07:08 +0000 (02:07 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Sep 2023 08:12:03 +0000 (10:12 +0200)
commit6ad40b36cd3b04209e2d6c89d252c873d8082a59
treee916c23eec8e9d849b100c06dcd7b348e3b2eb68
parent8fc134fee27f2263988ae38920bc03da416b03d8
kcm: Destroy mutex in kcm_exit_net()

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