From 3626dd35af55fa1cbf759bce2b7841ea8ebcf5ea Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Tue, 6 Jan 2004 13:33:21 +0000 Subject: return -ERESTARTSYS from ci_ll_read/write() if interrupted --- linux/drivers/media/dvb/ttpci/av7110_ca.c | 4 ++-- 1 file 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; -- cgit v1.2.3