From 99b587482bf28854705d944c5bf72f0f5a1dbe21 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 8 Mar 2002 23:44:25 +0000 Subject: [PATCH] Fix BUG in do_test_for_insn_bits() while testing irrelevant subdevices that are busy. --- lib/filler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filler.c b/lib/filler.c index 1d40e99..54d31e6 100644 --- a/lib/filler.c +++ b/lib/filler.c @@ -229,6 +229,9 @@ static int do_test_for_insn_bits(comedi_t *dev,unsigned int subdevice) lsampl_t data[2]; int ret; + if(dev->subdevices[subdevice].maxdata != 1) + return 0; + memset(&insn,0,sizeof(insn)); il.n_insns = 1; -- 2.26.2