summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-11-18 20:55:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-22 02:58:54 +0300
commit35a7475dc818320915e89ed0217872ff1ab66ec2 (patch)
treeac14634755e673dee2339ecb6d79cc27007a8878 /tools/perf/scripts/python
parent591c5f8a599a58c7c3773027010e537fc1d7a7d5 (diff)
downloadlinux-35a7475dc818320915e89ed0217872ff1ab66ec2.tar.xz
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 <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions