Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285328
b: refs/heads/master
c: de2a20b
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Ringel authored and Mauro Carvalho Chehab committed Nov 28, 2011
1 parent 37baa37 commit cac812e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 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: 8159c184cf58ac78fc868d776fa2062d1162b6e5
refs/heads/master: de2a20baff364b8dd19371acc1dc0b138e0b08b9
16 changes: 13 additions & 3 deletions trunk/drivers/media/video/tm6000/tm6000-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,19 @@ static void tm6000_urb_received(struct urb *urb)
int ret;
struct tm6000_core *dev = urb->context;

if (urb->status != 0)
switch (urb->status) {
case 0:
case -ETIMEDOUT:
break;
case -ENOENT:
case -ECONNRESET:
case -ESHUTDOWN:
return;
default:
print_err_status(dev, 0, urb->status);
else if (urb->actual_length > 0)
}

if (urb->actual_length > 0)
dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer,
urb->actual_length);

Expand Down Expand Up @@ -151,7 +161,7 @@ static int tm6000_start_stream(struct tm6000_core *dev)
printk(KERN_ERR "tm6000: pipe resetted\n");

/* mutex_lock(&tm6000_driver.open_close_mutex); */
ret = usb_submit_urb(dvb->bulk_urb, GFP_KERNEL);
ret = usb_submit_urb(dvb->bulk_urb, GFP_ATOMIC);

/* mutex_unlock(&tm6000_driver.open_close_mutex); */
if (ret) {
Expand Down

0 comments on commit cac812e

Please sign in to comment.