s526: don't dereference insn->data
authorIan Abbott <abbotti@mev.co.uk>
Fri, 28 Sep 2012 11:12:47 +0000 (12:12 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 28 Sep 2012 11:12:47 +0000 (12:12 +0100)
commitc605a5501ead027e529b0ea86e0bb7688185e7f4
tree5c0019f392f2ddd94c8fbd6849f21eb2e20f8f46
parent44acf3a7093fd0c61b7af587e59cea4fd823c826
s526: don't dereference insn->data

`s526_gpct_insn_config()` and `s526_gpct_winsn()` are incorrectly
dereferencing `insn->data` which is a pointer to user memory.  They
should be using the separate `data` pointer that points to a copy of the
data in kernel memory.  Fix them.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/s526.c