diff options
| author | Ian Abbott <[email protected]> | 2016-02-19 16:13:54 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-02-20 15:25:58 -0800 |
| commit | 57c563bf78f50d8a43e7ffe0087bc43dc0f188aa (patch) | |
| tree | 20ccee91a3ad65d1042702fb23d18733cc02203f /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | bb0c6bfac7d4aebb6525b285ca03c4316d72647a (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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions