diff options
author | Johannes Stezenbach <devnull@localhost> | 2004-01-06 13:33:21 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2004-01-06 13:33:21 +0000 |
commit | 3626dd35af55fa1cbf759bce2b7841ea8ebcf5ea (patch) | |
tree | 51a5c57a73678ddc5394d419859c10043e828d58 | |
parent | 2dcefdc83dcc04e2c6f8d8697ff1405780a660f0 (diff) | |
download | mediapointer-dvb-s2-3626dd35af55fa1cbf759bce2b7841ea8ebcf5ea.tar.gz mediapointer-dvb-s2-3626dd35af55fa1cbf759bce2b7841ea8ebcf5ea.tar.bz2 |
return -ERESTARTSYS from ci_ll_read/write() if interrupted
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ca.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ca.c b/linux/drivers/media/dvb/ttpci/av7110_ca.c index 723edfc30..7b7c7a738 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ca.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ca.c @@ -155,7 +155,7 @@ static ssize_t ci_ll_write(struct dvb_ringbuffer *cibuf, struct file *file, return -EWOULDBLOCK; if (wait_event_interruptible(cibuf->queue, (dvb_ringbuffer_free(cibuf) >= count + 2))) - return 0; + return -ERESTARTSYS; } DVB_RINGBUFFER_WRITE_BYTE(cibuf, count >> 8); @@ -177,7 +177,7 @@ static ssize_t ci_ll_read(struct dvb_ringbuffer *cibuf, struct file *file, return -EWOULDBLOCK; if (wait_event_interruptible(cibuf->queue, !dvb_ringbuffer_empty(cibuf))) - return 0; + return -ERESTARTSYS; avail = dvb_ringbuffer_avail(cibuf); if (avail < 4) return 0; |