linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: wilc1000: fix double unlock
@ 2016-04-14 15:18 Sudip Mukherjee
  2016-04-14 15:18 ` [PATCH 2/2] staging: wilc1000: remove unused variables Sudip Mukherjee
  2016-04-29  5:06 ` [PATCH 1/2] staging: wilc1000: fix double unlock Greg Kroah-Hartman
  0 siblings, 2 replies; 3+ messages in thread
From: Sudip Mukherjee @ 2016-04-14 15:18 UTC (permalink / raw)
  To: Johnny Kim, Austin Shin, Chris Park, Tony Cho, Glen Lee, Leo Kim,
	Greg Kroah-Hartman
  Cc: linux-kernel, linux-wireless, devel, Sudip Mukherjee

The semaphore was being released twice, once at the beginning of the
thread and then again when the thread is about to close.
The semaphore is acquired immediately after creating the thread so we
should be releasing it when the thread ends.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
---
 drivers/staging/wilc1000/linux_wlan.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index a858552..5643a3d 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -313,7 +313,6 @@ static int linux_wlan_txq_task(void *vp)
 	vif = netdev_priv(dev);
 	wl = vif->wilc;
 
-	up(&wl->txq_thread_started);
 	while (1) {
 		down(&wl->txq_event);
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-29  5:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 15:18 [PATCH 1/2] staging: wilc1000: fix double unlock Sudip Mukherjee
2016-04-14 15:18 ` [PATCH 2/2] staging: wilc1000: remove unused variables Sudip Mukherjee
2016-04-29  5:06 ` [PATCH 1/2] staging: wilc1000: fix double unlock Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).