patch-2.3.14 linux/drivers/char/console.c
Next file: linux/drivers/char/defkeymap.c
Previous file: linux/drivers/char/busmouse.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Aug 13 12:19:25 1999
- Orig file:
v2.3.13/linux/drivers/char/console.c
- Orig date:
Thu Jul 8 15:42:20 1999
diff -u --recursive --new-file v2.3.13/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -1984,7 +1984,7 @@
static unsigned long printing = 0;
const ushort *start;
ushort cnt = 0;
- ushort myx = x;
+ ushort myx;
/* console busy or not yet initialized */
if (!printable || test_and_set_bit(0, &printing))
@@ -1992,6 +1992,10 @@
if (kmsg_redirect && vc_cons_allocated(kmsg_redirect - 1))
currcons = kmsg_redirect - 1;
+
+ /* read `x' only after setting currecons properly (otherwise
+ the `x' macro will read the x of the foreground console). */
+ myx = x;
if (!vc_cons_allocated(currcons)) {
/* impossible */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)