]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: comedi: COMEDI_BUFINFO with no async - report no bytes read or written
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 17:09:49 +0000 (18:09 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:53 +0000 (13:38 -0700)
commitf85096349d21d5616d45ec34869fa4c745364c74
tree15aa77b0981f17e100f8303a4754ad2b5752eeee
parentc7900cc61cea4346330242527d016564e173f206
Staging: comedi: COMEDI_BUFINFO with no async - report no bytes read or written

When the COMEDI_BUFINFO ioctl is used on a subdevice without
asynchronous streaming command support, set 'bytes_read = 0' and
'bytes_written = 0' in the buffer info returned back to the user.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c