From: Signed-off-by: Nishanth Aravamudan Signed-off-by: Maximilian Attems Signed-off-by: Andrew Morton --- 25-akpm/drivers/char/sx.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/char/sx.c~janitor-char-sx-replace-direct-assignment-with-set_current_state drivers/char/sx.c --- 25/drivers/char/sx.c~janitor-char-sx-replace-direct-assignment-with-set_current_state 2004-09-30 22:37:19.723751752 -0700 +++ 25-akpm/drivers/char/sx.c 2004-09-30 22:37:19.728750992 -0700 @@ -1499,7 +1499,7 @@ static void sx_close (void *ptr) sx_send_command (port, HS_CLOSE, 0, 0); while (to-- && (sx_read_channel_byte (port, hi_hstat) != HS_IDLE_CLOSED)) { - current->state = TASK_INTERRUPTIBLE; + set_current_state(TASK_INTERRUPTIBLE); schedule_timeout (1); if (signal_pending (current)) break; _