From 76550277d318ba8284c8762f65fdf17e9c338b41 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 31 Jan 2004 21:58:10 +0000 Subject: [PATCH] check for nonzero return from schedule_timeout() --- comedi/drivers/ni_mio_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index defb30be..892e4a8d 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -1273,7 +1273,10 @@ static int cs5529_ai_insn_read(comedi_device *dev,comedi_subdevice *s,comedi_ins /* this can't be called from RT, but why would someone want to mess with * this calibration adc from RT priority? */ set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(1); + if(schedule_timeout(1)) + { + return -EIO; + } } if(i == timeout) { -- 2.26.2