From 5e9f2e262e05fd8b1be3d72d63fd908d3ff48748 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 17 May 2010 11:26:07 +0000 Subject: [PATCH] For COMEDI_BUFINFO ioctl, if subdevice has no async capability, set bytes_read and bytes_written to 0 in returned structure. --- comedi/comedi_fops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index a6386675..0e9bf33b 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -594,6 +594,8 @@ static int do_bufinfo_ioctl(comedi_device * dev, void *arg) bi.buf_read_ptr = 0; bi.buf_write_count = 0; bi.buf_read_count = 0; + bi.bytes_read = 0; + bi.bytes_written = 0; goto copyback; } -- 2.26.2