From 3dc263e03d3421b9abb99d677bb448e4d1484b33 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Fri, 9 Apr 2004 15:02:34 +0000 Subject: Fixed stupid bug in io_read --- linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/dvb-core') 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; -- cgit v1.2.3