staging: wilc1000: destroy initialized mutex object
authorHariPrasath Elango <hariprasath.elango@gmail.com>
Wed, 14 Mar 2018 12:45:02 +0000 (18:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 18:45:31 +0000 (19:45 +0100)
A mutex object that is initialized but not destroyed.This patch destroys
the mutex object

Signed-off-by: HariPrasath Elango <hariprasath.elango@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 5395648..9d8d5d0 100644 (file)
@@ -2310,6 +2310,7 @@ int wilc_deinit_host_int(struct net_device *net)
 
        op_ifcs--;
 
+       mutex_destroy(&priv->scan_req_lock);
        ret = wilc_deinit(vif);
 
        clear_shadow_scan();