Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124234
b: refs/heads/master
c: 880ae24
h: refs/heads/master
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent be9aa2e commit bad7190
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a23f5fcb0d38ebb70ab31c16c079f38b26e453c
refs/heads/master: 880ae24d35d357037d5ad5c3148383fde1070a12
9 changes: 7 additions & 2 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ static void fill_frame(struct gspca_dev *gspca_dev,
}

/* resubmit the URB */
urb->status = 0;
st = usb_submit_urb(urb, GFP_ATOMIC);
if (st < 0)
PDEBUG(D_ERR|D_PACK, "usb_submit_urb() ret %d", st);
Expand Down Expand Up @@ -208,7 +207,13 @@ static void bulk_irq(struct urb *urb
PDEBUG(D_PACK, "bulk irq");
if (!gspca_dev->streaming)
return;
if (urb->status != 0 && urb->status != -ECONNRESET) {
switch (urb->status) {
case 0:
break;
case -ECONNRESET:
urb->status = 0;
break;
default:
#ifdef CONFIG_PM
if (!gspca_dev->frozen)
#endif
Expand Down

0 comments on commit bad7190

Please sign in to comment.