staging: wilc1000: Destroy mutex object in deinitialization
authorHariPrasath Elango <hariprasath.elango@gmail.com>
Wed, 14 Mar 2018 12:45:00 +0000 (18:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 18:45:31 +0000 (19:45 +0100)
Destroy the mutex object that is initialized in wlan_init_locks()

Signed-off-by: HariPrasath Elango <hariprasath.elango@gmail.com>
Reviewed-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index 1af3c14..38a83bd 100644 (file)
@@ -678,6 +678,7 @@ static int wlan_deinit_locks(struct net_device *dev)
 
        mutex_destroy(&wilc->hif_cs);
        mutex_destroy(&wilc->rxq_cs);
+       mutex_destroy(&wilc->txq_add_to_head_cs);
 
        return 0;
 }