Re: [patch] [media] gspca: passing wrong length parameter to reg_w()

2012-05-02 Thread Dan Carpenter
On Wed, May 02, 2012 at 08:47:58AM +0200, Jean-Francois Moine wrote: > Thanks for the patch. The bug is very very old (6 years, at least - > neither have I such a webcam). > My guess is that it's harmless to write a few extra garbage bits, but it's still worth fixing as a cleanup. > Maybe the fi

Re: [patch] [media] gspca: passing wrong length parameter to reg_w()

2012-05-01 Thread Jean-Francois Moine
On Wed, 2 May 2012 09:15:25 +0300 Dan Carpenter wrote: > This looks like a cut an paste error. This is a two byte array but we > use 8 as a length parameter. > > Signed-off-by: Dan Carpenter > --- > This is a static checker fix. I don't own the hardware. > > diff --git a/drivers/media/video/

[patch] [media] gspca: passing wrong length parameter to reg_w()

2012-05-01 Thread Dan Carpenter
This looks like a cut an paste error. This is a two byte array but we use 8 as a length parameter. Signed-off-by: Dan Carpenter --- This is a static checker fix. I don't own the hardware. diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index ea17b5d..f39fee0