projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32afebb
)
check for nonzero return from schedule_timeout()
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 31 Jan 2004 21:58:10 +0000
(21:58 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 31 Jan 2004 21:58:10 +0000
(21:58 +0000)
comedi/drivers/ni_mio_common.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/ni_mio_common.c
b/comedi/drivers/ni_mio_common.c
index defb30bea9190f4ff1022e4b2766f04de89da6ca..892e4a8d4f4cf9ba5f5a80dd3f718093983b43ee 100644
(file)
--- 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)
{