All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [git:v4l-dvb/other] V4L/DVB: drivers/media/video/pvrusb2: Add missing mutex_unlock
       [not found] <E1OV9yX-0006Dg-H2@www.linuxtv.org>
@ 2010-07-03 22:43 ` Mike Isely
  2010-07-03 22:59   ` Douglas Schilling Landgraf
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Isely @ 2010-07-03 22:43 UTC (permalink / raw)
  To: linux-media, Mauro Carvalho Chehab
  Cc: Julia Lawall, Douglas Schilling Landgraf, Mike Isely


Mauro:

FYI, I posted an "Acked-By: Mike Isely <isely@pobox.com>" weeks ago, 
back on 27-May, immediately after the patch was posted.  It's a great 
catch, and the bug has been there since basically the beginning of the 
driver.  Was I ever supposed to see any kind of reaction to that ack 
(e.g. having the "Acked-By" added to the patch)?  I had posted it in 
reply to the original patch, copied back to the patch author, to lkml, 
to linux-media, kernel-janitors, and Mauro.

  -Mike


On Sat, 3 Jul 2010, Mauro Carvalho Chehab wrote:

> This is an automatic generated email to let you know that the following patch were queued at the 
> http://git.linuxtv.org/v4l-dvb.git tree:
> 
> Subject: V4L/DVB: drivers/media/video/pvrusb2: Add missing mutex_unlock
> Author:  Julia Lawall <julia@diku.dk>
> Date:    Tue Jun 29 01:42:53 2010 -0300
> 
> Add a mutex_unlock missing on the error path.  In the other functions in
> the same file the locks and unlocks of this mutex appear to be balanced,
> so it would seem that the same should hold in this case.
> 
> The semantic match that finds this problem is as follows:
> (http://coccinelle.lip6.fr/)
> 
> // <smpl>
> @@
> expression E1;
> @@
> 
> * mutex_lock(E1,...);
>   <+... when != E1
>   if (...) {
>     ... when != E1
> *   return ...;
>   }
>   ...+>
> * mutex_unlock(E1,...);
> // </smpl>
> 
> Signed-off-by: Julia Lawall <julia@diku.dk>
> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
> Cc: Mike Isely <isely@isely.net>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> 
>  drivers/media/video/pvrusb2/pvrusb2-ioread.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> ---
> 
> http://git.linuxtv.org/v4l-dvb.git?a=commitdiff;h=ccbc746b6bc3662b11679c75d1793753228ae67a
> 
> diff --git a/drivers/media/video/pvrusb2/pvrusb2-ioread.c b/drivers/media/video/pvrusb2/pvrusb2-ioread.c
> index b482478..bba6115 100644
> --- a/drivers/media/video/pvrusb2/pvrusb2-ioread.c
> +++ b/drivers/media/video/pvrusb2/pvrusb2-ioread.c
> @@ -223,7 +223,10 @@ int pvr2_ioread_setup(struct pvr2_ioread *cp,struct pvr2_stream *sp)
>  				   " pvr2_ioread_setup (setup) id=%p",cp);
>  			pvr2_stream_kill(sp);
>  			ret = pvr2_stream_set_buffer_count(sp,BUFFER_COUNT);
> -			if (ret < 0) return ret;
> +			if (ret < 0) {
> +				mutex_unlock(&cp->mutex);
> +				return ret;
> +			}
>  			for (idx = 0; idx < BUFFER_COUNT; idx++) {
>  				bp = pvr2_stream_get_buffer(sp,idx);
>  				pvr2_buffer_set_buffer(bp,
> 

-- 

Mike Isely
isely @ isely (dot) net
PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8

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

* Re: [git:v4l-dvb/other] V4L/DVB: drivers/media/video/pvrusb2: Add missing mutex_unlock
  2010-07-03 22:43 ` [git:v4l-dvb/other] V4L/DVB: drivers/media/video/pvrusb2: Add missing mutex_unlock Mike Isely
@ 2010-07-03 22:59   ` Douglas Schilling Landgraf
  2010-07-04  2:54     ` Mike Isely
  0 siblings, 1 reply; 3+ messages in thread
From: Douglas Schilling Landgraf @ 2010-07-03 22:59 UTC (permalink / raw)
  To: Mike Isely; +Cc: linux-media, Mauro Carvalho Chehab, Julia Lawall

Hello Mike,

Mike Isely wrote:
> Mauro:
> 
> FYI, I posted an "Acked-By: Mike Isely <isely@pobox.com>" weeks ago, 
> back on 27-May, immediately after the patch was posted.  It's a great 
> catch, and the bug has been there since basically the beginning of the 
> driver.  Was I ever supposed to see any kind of reaction to that ack 
> (e.g. having the "Acked-By" added to the patch)?  I had posted it in 
> reply to the original patch, copied back to the patch author, to lkml, 
> to linux-media, kernel-janitors, and Mauro.
> 
>   -Mike

It seems my mistake since I have added CC instead of Acked-by, sorry.
This happened because usually I add CC to the authors of drivers when I 
took patches from patchwork and I wanna notify them. In your case, I 
missed the acked-by.

Mauro, if possible, could you please replace CC to the correct Acked-by 
before submit this patch to Linus?

Thanks
Douglas

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

* Re: [git:v4l-dvb/other] V4L/DVB: drivers/media/video/pvrusb2: Add missing mutex_unlock
  2010-07-03 22:59   ` Douglas Schilling Landgraf
@ 2010-07-04  2:54     ` Mike Isely
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Isely @ 2010-07-04  2:54 UTC (permalink / raw)
  To: Douglas Schilling Landgraf
  Cc: linux-media, Mauro Carvalho Chehab, Julia Lawall, Mike Isely

On Sat, 3 Jul 2010, Douglas Schilling Landgraf wrote:

> Hello Mike,
> 
> Mike Isely wrote:
> > Mauro:
> > 
> > FYI, I posted an "Acked-By: Mike Isely <isely@pobox.com>" weeks ago, back on
> > 27-May, immediately after the patch was posted.  It's a great catch, and the
> > bug has been there since basically the beginning of the driver.  Was I ever
> > supposed to see any kind of reaction to that ack (e.g. having the "Acked-By"
> > added to the patch)?  I had posted it in reply to the original patch, copied
> > back to the patch author, to lkml, to linux-media, kernel-janitors, and
> > Mauro.
> > 
> >   -Mike
> 
> It seems my mistake since I have added CC instead of Acked-by, sorry.
> This happened because usually I add CC to the authors of drivers when I took
> patches from patchwork and I wanna notify them. In your case, I missed the
> acked-by.
> 
> Mauro, if possible, could you please replace CC to the correct Acked-by before
> submit this patch to Linus?
> 

Hmm, going through my old e-mail now I can see that the patch was picked 
up for -mm on 1-Jun.  At that time I was marked as a CC: for the patch - 
which I'd expect as the driver maintainer.  But no Acked-By: was 
showing.  Maybe that's when the ack got missed.

Obviously I have no issue with this patch.  My only real concern is that 
nobody thinks I might have been ignoring it.  Thanks for following up.

  -Mike


-- 

Mike Isely
isely @ isely (dot) net
PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8

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

end of thread, other threads:[~2010-07-04  2:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1OV9yX-0006Dg-H2@www.linuxtv.org>
2010-07-03 22:43 ` [git:v4l-dvb/other] V4L/DVB: drivers/media/video/pvrusb2: Add missing mutex_unlock Mike Isely
2010-07-03 22:59   ` Douglas Schilling Landgraf
2010-07-04  2:54     ` Mike Isely

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.