Skip to contentSkip to conversation

staging: wilc1000: destroy initialized mutex object

PATCH New [email protected] 1 participant 1 message Mar 13, 2018 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: destroy initialized mutex object

From: HariPrasath Elango <[email protected]>

A mutex object that is initialized but not destroyed.This patch destroys the mutex object

---
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +1 -0
index 205304c..c901108 100644
@@ -2303,6 +2303,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();
Signature · 6 lines
2.10.0.GIT

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel