]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
V4L/DVB: Video : pwc : Fix regression in pwc_set_shutter_speed caused by bad constan...
authorMartin Fuzzey <mfuzzey@gmail.com>
Thu, 11 Feb 2010 13:50:31 +0000 (10:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 19 Feb 2010 05:19:02 +0000 (03:19 -0200)
commit53f68607caba85db9a73846ccd289e4b7fa96295
tree1dbca5973bac252dce3bd7477a178982f760c5f0
parent2b59125b1b5f8c9bb0524b8a0bdad4b780a239ac
V4L/DVB: Video : pwc : Fix regression in pwc_set_shutter_speed caused by bad  constant => sizeof conversion.

Regression was caused by my commit 6b35ca0d3d586b8ecb8396821af21186e20afaf0
which determined message size using sizeof rather than hardcoded constants.

Unfortunately pwc_set_shutter_speed reuses a 2 byte buffer for a one byte
message too so the sizeof was bogus in this case.

All other uses of sizeof checked and are ok.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@kernel.org
Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-ctrl.c