summaryrefslogtreecommitdiff
path: root/fs/binfmt_elf_fdpic.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-11-18 17:55:08 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-21 15:58:54 -0800
commit35a7475dc818320915e89ed0217872ff1ab66ec2 (patch)
treeac14634755e673dee2339ecb6d79cc27007a8878 /fs/binfmt_elf_fdpic.c
parent591c5f8a599a58c7c3773027010e537fc1d7a7d5 (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 <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
0 files changed, 0 insertions, 0 deletions