]> git.hungrycats.org Git - linux/commitdiff
[PATCH] slip.c: current state cleanup
authorFelipe Damasio <felipewd@terra.com.br>
Thu, 11 Sep 2003 11:23:55 +0000 (07:23 -0400)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 11 Sep 2003 11:23:55 +0000 (07:23 -0400)
drivers/net/slip.c

index 3e60ed4c3969f5c3490bca8991ee2f64ad0c7c81..221a89e880afdcbecbbe8651b85831ba3a63960d 100644 (file)
@@ -1389,9 +1389,8 @@ static void __exit slip_exit(void)
         */
        do {
                if (busy) {
-                       current->state = TASK_INTERRUPTIBLE;
+                       set_current_state(TASK_INTERRUPTIBLE);
                        schedule_timeout(HZ / 10);
-                       current->state = TASK_RUNNING;
                }
 
                busy = 0;