From 2ebd9ec4ac390fc6ca31e928ca56df76f4fa177c Mon Sep 17 00:00:00 2001 From: HariPrasath Elango Date: Wed, 14 Mar 2018 18:15:02 +0530 Subject: staging: wilc1000: destroy initialized mutex object A mutex object that is initialized but not destroyed.This patch destroys the mutex object Signed-off-by: HariPrasath Elango Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/staging/wilc1000') diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 5395648ae66d..9d8d5d08b4f1 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -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(); -- cgit v1.2.3