kcm: Destroy mutex in kcm_exit_net()
[linux-2.6-microblaze.git] / net / kcm / kcmsock.c
index 393f01b..4580f61 100644 (file)
@@ -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 = {