aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2016-02-19 16:13:54 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 15:25:58 -0800
commit57c563bf78f50d8a43e7ffe0087bc43dc0f188aa (patch)
tree20ccee91a3ad65d1042702fb23d18733cc02203f /scripts
parentstaging: comedi: COMEDI_BUFINFO: force bytes_written to 0 if stopped (diff)
staging: comedi: COMEDI_BUFINFO: return error if no active command
The `COMEDI_BUFINFO` ioctl is used to advance the current position in the buffer and/or get the current buffer position. If no asynchronous command is active (started via the file object that issued this ioctl), this information is meaningless. Change it to return an error (`-EINVAL`) in this case. Prior to this change, if a command was started via a different file object, the ioctl returned `-EACCES`, but now it will return `-EINVAL`, which is consistent with the current behavior of the "read" and "write" file operation handlers. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions