aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libdvbv5/dvb-dev-local.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-09 15:40:53 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-29 17:58:34 (GMT)
commitd58543c21c2493ec4f74b1a54aaaf348f5eb3097 (patch)
tree171a91324d7855bda65713aefaa6fab136882d0d /lib/libdvbv5/dvb-dev-local.c
parent0b16c25a3d0d886156d1cecc39e8f717aeee44d8 (diff)
libdvbv5: better handle overflow errors
There are some issues with handling overflow errors after the addition of remote access. Address them. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'lib/libdvbv5/dvb-dev-local.c')
-rw-r--r--lib/libdvbv5/dvb-dev-local.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index f514794..bf69fd6 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -558,7 +558,8 @@ static ssize_t dvb_local_read(struct dvb_open_descriptor *open_dev,
ret = read(fd, buf, count);
if (ret == -1) {
- dvb_perror("read()");
+ if (errno != EOVERFLOW)
+ dvb_perror("read()");
return -errno;
}

Privacy Policy