Skip to contentSkip to conversation

drivers/char/hw_random.c: replace direct assignment

PATCH New Christophe Lucas 1 participant 1 message May 4, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/hw_random.c: replace direct assignment

description:
Use set_current_state() instead of direct assignment of current->state.

drivers/char/hw_random.c +1 -1
diff -urpNX dontdiff a/drivers/char/hw_random.c b/drivers/char/hw_random.c
@@ -514,7 +514,7 @@ static ssize_t rng_dev_read (struct file
 
 		if(need_resched())
 		{
-			current->state = TASK_INTERRUPTIBLE;
+			set_current_state(TASK_INTERRUPTIBLE);
 			schedule_timeout(1);
 		}
 		else

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors