git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 2.0 rc7
[linux-2.6.git]
/
drivers
/
char
/
ftape
/
lowlevel
/
fdc-io.c
diff --git
a/drivers/char/ftape/lowlevel/fdc-io.c
b/drivers/char/ftape/lowlevel/fdc-io.c
index
f589e7e
..
1704a2a
100644
(file)
--- a/
drivers/char/ftape/lowlevel/fdc-io.c
+++ b/
drivers/char/ftape/lowlevel/fdc-io.c
@@
-387,7
+387,8
@@
int fdc_interrupt_wait(unsigned int time)
set_current_state(TASK_INTERRUPTIBLE);
add_wait_queue(&ftape_wait_intr, &wait);
set_current_state(TASK_INTERRUPTIBLE);
add_wait_queue(&ftape_wait_intr, &wait);
- while (!ft_interrupt_seen && (current->state == TASK_INTERRUPTIBLE)) {
+ while (!ft_interrupt_seen && timeout) {
+ set_current_state(TASK_INTERRUPTIBLE);
timeout = schedule_timeout(timeout);
}
timeout = schedule_timeout(timeout);
}