mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
V4L/DVB (13450): gspca - main: Clear the urb status before resubmit.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
2d19a2c118
commit
8157852f73
@ -139,6 +139,7 @@ static void fill_frame(struct gspca_dev *gspca_dev,
|
||||
return;
|
||||
#endif
|
||||
PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
|
||||
urb->status = 0;
|
||||
goto resubmit;
|
||||
}
|
||||
pkt_scan = gspca_dev->sd_desc->pkt_scan;
|
||||
@ -214,15 +215,13 @@ static void bulk_irq(struct urb *urb)
|
||||
break;
|
||||
case -ESHUTDOWN:
|
||||
return; /* disconnection */
|
||||
case -ECONNRESET:
|
||||
urb->status = 0;
|
||||
break;
|
||||
default:
|
||||
#ifdef CONFIG_PM
|
||||
if (gspca_dev->frozen)
|
||||
return;
|
||||
#endif
|
||||
PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
|
||||
urb->status = 0;
|
||||
goto resubmit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user