All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] drivers/char/selection.c: replace direct assignment
@ 2005-05-04 10:04 Christophe Lucas
  2005-05-04 16:33 ` Nish Aravamudan
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Lucas @ 2005-05-04 10:04 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

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

Signed-off-by: Christophe Lucas <clucas@rotomalug.org>

[-- Attachment #2: linux-2.6.12-rc3_drivers_char_selection.c.patch --]
[-- Type: text/plain, Size: 444 bytes --]

diff -urpNX dontdiff a/drivers/char/selection.c b/drivers/char/selection.c
--- a/drivers/char/selection.c	2005-04-21 02:03:13.000000000 +0200
+++ b/drivers/char/selection.c	2005-04-29 10:07:47.000000000 +0200
@@ -299,7 +299,7 @@ int paste_selection(struct tty_struct *t
 		pasted += count;
 	}
 	remove_wait_queue(&vc->paste_wait, &wait);
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 
 	tty_ldisc_deref(ld);
 	return 0;

[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-04 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-04 10:04 [KJ] [PATCH] drivers/char/selection.c: replace direct assignment Christophe Lucas
2005-05-04 16:33 ` Nish Aravamudan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.