Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390765 > unrolled thread

Re: [PATCH 1/2] staging: wilc1000: fix double unlock

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-04-29 07:10 +0200
Last post2016-04-29 07:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/2] staging: wilc1000: fix double unlock Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-04-29 07:10 +0200

#1390765 — Re: [PATCH 1/2] staging: wilc1000: fix double unlock

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-04-29 07:10 +0200
SubjectRe: [PATCH 1/2] staging: wilc1000: fix double unlock
Message-ID<rt8QF-sG-1@gated-at.bofh.it>
On Thu, Apr 14, 2016 at 08:48:48PM +0530, Sudip Mukherjee wrote:
> 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);
>  

Doesn't apply to my tree at all :(

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web