Browse Source

staging: wilc1000: Destroy mutex object in deinitialization

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>
HariPrasath Elango 7 years ago
parent
commit
50413119b6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/staging/wilc1000/linux_wlan.c

+ 1 - 0
drivers/staging/wilc1000/linux_wlan.c

@@ -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;
 }