From: Frank Mori Hess Date: Mon, 17 Jun 2002 15:45:10 +0000 (+0000) Subject: prevent callbacks from getting run when there is no command running X-Git-Tag: r0_7_66~197 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b937b70c6253172016abfc6aa3421c825e1ea80c;p=comedi.git prevent callbacks from getting run when there is no command running --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index bea2cd2f..726f1332 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1812,6 +1812,9 @@ void comedi_event(comedi_device *dev,comedi_subdevice *s,unsigned int mask) //DPRINTK("comedi_event %x\n",mask); + if( (s->subdev_flags & SDF_RUNNING) == 0) + return; + if(mask&COMEDI_CB_EOA){ s->subdev_flags &= ~SDF_RUNNING; }