diff options
author | Ian Abbott <[email protected]> | 2015-11-18 17:55:08 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-12-21 15:58:54 -0800 |
commit | 35a7475dc818320915e89ed0217872ff1ab66ec2 (patch) | |
tree | ac14634755e673dee2339ecb6d79cc27007a8878 /drivers/fpga/fpga-mgr.c | |
parent | 591c5f8a599a58c7c3773027010e537fc1d7a7d5 (diff) |
staging: comedi: allow buffer wraparound in comedi_write()
`comedi_write()` copies data from the user buffer to the acquisition
data buffer, which is cyclic, using a single call to `copy_from_user()`.
It currently avoids having to deal with wraparound of the cyclic buffer
by limiting the amount it copies (and the amount returned to the user).
Change it to deal with the wraparound using two calls to
`copy_from_user()` if necessary.
Signed-off-by: Ian Abbott <[email protected]>
Reviewed-by: H Hartley Sweeten <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions