diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-09-19 15:08:35 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-21 09:19:41 -0700 |
commit | b2abd982c484ba0e46ea681b0bc6d7baf7c47730 (patch) | |
tree | ef38880b18c1def25de72d2b4898201988231713 /tools/perf/scripts/python | |
parent | effef787a9e7c95b58a70951ec934a4474fa73bf (diff) |
staging: comedi: s526: don't dereference insn->data pointer
The comedi_insn 'data' pointer is a __user pointer that is
passed into the kernel using an ioctl. The comedi core copies
this data to kernel space in do_insnlist_ioctl() and then
passes that kernel data to the drivers as a separate parameter.
The drivers never need to access the data through the insn->data
pointer.
This fixes a number of sparse warnings about:
warning: dereference of noderef expression
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