staging: comedi: check data length for INSN_CONFIG_DIGITAL_TRIG
authorIan Abbott <abbotti@mev.co.uk>
Wed, 14 Nov 2012 11:22:57 +0000 (11:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:25:08 +0000 (16:25 -0800)
commitb0a2b6d8ac9ce5d27c9086a196d8f44194561979
treec895dda68bf35495ba4db13aca375132f321c6bb
parent33cdce6293dcc0b10dcaa8bb5e6fdc8e56b5968f
staging: comedi: check data length for INSN_CONFIG_DIGITAL_TRIG

The newly defined format for the `INSN_CONFIG_DIGITAL_TRIG`
configuration instruction expects 6 data values.  Check the length in
`check_insn_config_length()` before calling the comedi subdevice's
`insn_config` handler.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c