diff options
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 369eddd352c3..08433f77245a 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -139,6 +139,7 @@ static void fill_frame(struct gspca_dev *gspca_dev, | |||
139 | return; | 139 | return; |
140 | #endif | 140 | #endif |
141 | PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status); | 141 | PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status); |
142 | urb->status = 0; | ||
142 | goto resubmit; | 143 | goto resubmit; |
143 | } | 144 | } |
144 | pkt_scan = gspca_dev->sd_desc->pkt_scan; | 145 | pkt_scan = gspca_dev->sd_desc->pkt_scan; |
@@ -214,15 +215,13 @@ static void bulk_irq(struct urb *urb) | |||
214 | break; | 215 | break; |
215 | case -ESHUTDOWN: | 216 | case -ESHUTDOWN: |
216 | return; /* disconnection */ | 217 | return; /* disconnection */ |
217 | case -ECONNRESET: | ||
218 | urb->status = 0; | ||
219 | break; | ||
220 | default: | 218 | default: |
221 | #ifdef CONFIG_PM | 219 | #ifdef CONFIG_PM |
222 | if (gspca_dev->frozen) | 220 | if (gspca_dev->frozen) |
223 | return; | 221 | return; |
224 | #endif | 222 | #endif |
225 | PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status); | 223 | PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status); |
224 | urb->status = 0; | ||
226 | goto resubmit; | 225 | goto resubmit; |
227 | } | 226 | } |
228 | 227 | ||