diff options
author | Ian Abbott | 2014-10-30 13:42:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-11-04 01:28:47 +0100 |
commit | f739850941bc300ed4dc18e22d42cbb670bf69b6 (patch) | |
tree | 577191dbd11fafe0aeb1db20ab44023851733bf1 /ipc/syscall.c | |
parent | staging: comedi: don't allow read() on async command set up for "write" (diff) | |
download | kernel-qcow2-linux-f739850941bc300ed4dc18e22d42cbb670bf69b6.tar.gz kernel-qcow2-linux-f739850941bc300ed4dc18e22d42cbb670bf69b6.tar.xz kernel-qcow2-linux-f739850941bc300ed4dc18e22d42cbb670bf69b6.zip |
staging: comedi: don't allow write() on async command set up for "read"
If a Comedi asynchronous command has been set up for data transfer in
the "read" direction on the current "write" subdevice (for those
subdevices that support both directions), don't allow the "write" file
operation as that would mess with the data in the comedi data buffer
that is written by the low-level comedi hardware driver.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc/syscall.c')
0 files changed, 0 insertions, 0 deletions