]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91b466b817bb053eb0d939888d8b223ec6e1d7c1
treec895dda68bf35495ba4db13aca375132f321c6bb
parent5d5008fe228d5f0c53d9d6d0e55dfdf753b2cdbb
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