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>
This commit is contained in:
HariPrasath Elango 2018-03-14 18:15:00 +05:30 committed by Greg Kroah-Hartman
parent 76c01fdd82
commit 50413119b6
1 changed files with 1 additions and 0 deletions

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