From d42a930632a7b4e47da59ecdfe664696c77b6752 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 22 Jun 2002 20:06:41 +0000 Subject: [PATCH] make sure bogus interrupts during ai insn don't cause problems --- comedi/drivers/cb_pcidas64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 7666a0c2..c2783a9c 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -1999,7 +1999,8 @@ static void handle_interrupt(int irq, void *d, struct pt_regs *regs) if( status & ADC_DONE_BIT ) { DEBUG_PRINT("adc done interrupt\n"); - pio_drain_ai_fifo(dev); + if( private(dev)->ai_cmd_running ) + pio_drain_ai_fifo(dev); } // if we are have all the data, then quit -- 2.26.2