summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-04-09 15:02:34 +0000
committerAndrew de Quincy <devnull@localhost>2004-04-09 15:02:34 +0000
commit3dc263e03d3421b9abb99d677bb448e4d1484b33 (patch)
treef1f6318a0de6f02fac96241a96c6bcfcdd1c8f31
parent06836acb1d14d2fe537ef202f0253f5321ae1278 (diff)
downloadmediapointer-dvb-s2-3dc263e03d3421b9abb99d677bb448e4d1484b33.tar.gz
mediapointer-dvb-s2-3dc263e03d3421b9abb99d677bb448e4d1484b33.tar.bz2
Fixed stupid bug in io_read
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
index 7f57ce152..55f8cf17a 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c
@@ -1364,7 +1364,7 @@ static ssize_t dvb_ca_en50221_io_read(struct file *file, char *buf, size_t count
fraglen -= 2;
}
- if ((status = dvb_ringbuffer_pkt_read(&ca->slot_info[slot].rx_buffer, idx, 2, buf + pktlen, fraglen, 1)) != 0) {
+ if ((status = dvb_ringbuffer_pkt_read(&ca->slot_info[slot].rx_buffer, idx, 2, buf + pktlen, fraglen, 1)) < 0) {
goto exit;
}
pktlen += fraglen;