[media] gspca - main: Check the isoc packet status before its length
authorJean-François Moine <moinejf@free.fr>
Sat, 25 Dec 2010 16:22:21 +0000 (13:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:17:06 +0000 (08:17 -0200)
commit76ebc16b87592350e4ea70681855171adf73f055
tree58b5b5999e7d5748a7f772f9db1a4e0768af2436
parentf2c5d92ecd4c69a4f86e76d19cb7663f2ebf4781
[media] gspca - main: Check the isoc packet status before its length

When an error is set for an isochronous packet, the length of the packet
may be null. In this case, the error was not detected and the image
was not discarded as it should be.

Reported-by: Franck Bourdonnec <fbourdonnec@chez.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c