summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2014-03-06 12:02:56 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 12:27:58 -0700
commit87ece583310d47bcf0027e4a77c990bbb010fc5e (patch)
treee8aed983ae2667bde03377a95b6eaa91d9bbcd2b /tools/perf/scripts/python
parenta11f5d2b2b37fcc5a06e9149686a85f3148f4190 (diff)
staging: comedi: comedi_fops: introduce __comedi_get_user_cmd()
The COMEDI_CMD and COMEDI_CMDTEST ioctl functions both copy the comedi_cmd passed by the user from __user memory space to kernel memory space. They then do some basic sanity checking of the cmd before the subdevice (*do_cmdtest) and (*do_cmd) operations are called. Introduce a helper function to handle the copy_from_user() and do the basic sanity checking. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions