From b937b70c6253172016abfc6aa3421c825e1ea80c Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 17 Jun 2002 15:45:10 +0000 Subject: [PATCH] prevent callbacks from getting run when there is no command running --- comedi/comedi_fops.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.26.2