summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-10-12 19:21:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-13 20:29:48 +0300
commit42ea907d785d522e5ae661c3774b8a801ac7f00b (patch)
tree434f60b628e9ad6c2fe404576c8db1453fd453a2 /include/linux
parent8ea939284d3ebde02d5b46d50406c2b7faae1214 (diff)
downloadlinux-42ea907d785d522e5ae661c3774b8a801ac7f00b.tar.xz
staging: comedi: allow buffer wraparound in comedi_read()
`comedi_read()` copies data from the acquisition data buffer, which is cyclic, to the user buffer using a single call to `copy_to_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_to_user()` if necessary. 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 'include/linux')
0 files changed, 0 insertions, 0 deletions