V4L/DVB (13383): gspca - pac7311/pac7302: Propagate error to higher level software.
commitb1784b3377bdeaeb6b9d01e651ff07bd44fec0f4
authorMárton Németh <nm127@freemail.hu>
Sat, 7 Nov 2009 08:52:02 +0000 (7 05:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:37 +0000 (5 18:41 -0200)
treeae09c129021a7e1e7fa2ace0133509c0194693c2
parent67c98f72e132e191ff4db0ac7bd81ea94fa5c667
V4L/DVB (13383): gspca - pac7311/pac7302: Propagate error to higher level software.

The usb_control_msg() can fail any time. Only continue writing
sequence if there was no error with the previous write. If there
was any problem stop sending URBs and propagate the error to the
gspca_main.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/pac7302.c
drivers/media/video/gspca/pac7311.c