Michal Januszewski f991519c19 [PATCH] vt: fix potential race in VT_WAITACTIVE handler
On a multiprocessor machine the VT_WAITACTIVE ioctl call may return 0 if
fg_console has already been updated in redraw_screen() but the console
switch itself hasn't been completed.  Fix this by checking fg_console in
vt_waitactive() with the console sem held.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Acked-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-04-02 10:06:09 -07:00
..
2007-02-27 00:36:00 -05:00
2007-02-17 18:57:09 +01:00
2007-03-18 11:35:07 -07:00
2007-02-12 09:48:30 -08:00
2007-02-11 10:51:26 -08:00
2007-02-11 10:51:26 -08:00
2007-03-17 01:03:26 +00:00
2007-02-20 17:11:55 +00:00
2007-01-22 08:53:24 -08:00
2007-02-11 10:51:30 -08:00
2007-02-11 11:18:06 -08:00
2007-02-12 09:48:30 -08:00
2007-02-12 09:48:30 -08:00
2007-02-11 10:51:26 -08:00
2007-02-12 09:48:30 -08:00
2007-02-11 10:51:28 -08:00
2007-02-12 09:48:30 -08:00
2006-12-13 09:05:49 -08:00
2006-12-08 08:28:59 -08:00
2007-02-12 09:48:30 -08:00
2007-02-12 09:48:30 -08:00
2007-02-12 09:48:30 -08:00
2006-12-20 16:37:48 +11:00