From 685f78cbd87170a35e7a83ea88ea1144c71e86e4 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 12 Jul 2006 02:17:50 +0000 Subject: [PATCH] Added check for length of INSN_CONFIG_SET_RTSI_CLOCK_MODE, (David MacMahon ) --- comedi/comedi_fops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 79a09883..69c556d9 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -635,11 +635,12 @@ static int check_insn_config_length(comedi_insn *insn, lsampl_t *data) case INSN_CONFIG_BLOCK_SIZE: case INSN_CONFIG_SERIAL_CLOCK: case INSN_CONFIG_BIDIRECTIONAL_DATA: + case INSN_CONFIG_SET_RTSI_CLOCK_MODE: if( insn->n == 2 ) return 0; break; - //by default we allow the insn since we don't have checks for all possible cases yet + //by default we allow the insn since we don't have checks for all possible cases yet default: - rt_printk("No check for data length of config insn id %i implemented. Assuming n=%i is correct.\n", + rt_printk("comedi: no check for data length of config insn id %i implemented. Assuming n=%i is correct.\n", data[0], insn->n); return 0; break; -- 2.26.2