From: Frank Mori Hess Date: Sat, 31 Jan 2004 21:58:10 +0000 (+0000) Subject: check for nonzero return from schedule_timeout() X-Git-Tag: r0_7_69~124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76550277d318ba8284c8762f65fdf17e9c338b41;p=comedi.git check for nonzero return from schedule_timeout() --- 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) {