Skip to contentSkip to conversation

drivers/block/paride/pg.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/block/paride/pg.c: replace direct assignment

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

drivers/block/paride/pg.c +1 -1
diff -urpNX dontdiff a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c
@@ -276,7 +276,7 @@ static inline u8 DRIVE(struct pg *dev)
 
 static void pg_sleep(int cs)
 {
-	current->state = TASK_INTERRUPTIBLE;
+	set_current_state(TASK_INTERRUPTIBLE);
 	schedule_timeout(cs);
 }
 

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