Commit 880ae24d authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (9688): gspca: Reset the bulk URB status before resubmitting at irq level.

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9a23f5fc
...@@ -173,7 +173,6 @@ static void fill_frame(struct gspca_dev *gspca_dev, ...@@ -173,7 +173,6 @@ static void fill_frame(struct gspca_dev *gspca_dev,
} }
/* resubmit the URB */ /* resubmit the URB */
urb->status = 0;
st = usb_submit_urb(urb, GFP_ATOMIC); st = usb_submit_urb(urb, GFP_ATOMIC);
if (st < 0) if (st < 0)
PDEBUG(D_ERR|D_PACK, "usb_submit_urb() ret %d", st); PDEBUG(D_ERR|D_PACK, "usb_submit_urb() ret %d", st);
...@@ -208,7 +207,13 @@ static void bulk_irq(struct urb *urb ...@@ -208,7 +207,13 @@ static void bulk_irq(struct urb *urb
PDEBUG(D_PACK, "bulk irq"); PDEBUG(D_PACK, "bulk irq");
if (!gspca_dev->streaming) if (!gspca_dev->streaming)
return; return;
if (urb->status != 0 && urb->status != -ECONNRESET) { switch (urb->status) {
case 0:
break;
case -ECONNRESET:
urb->status = 0;
break;
default:
#ifdef CONFIG_PM #ifdef CONFIG_PM
if (!gspca_dev->frozen) if (!gspca_dev->frozen)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment