Console bug fix.

James Simmons (jsimmons@infradead.org)
Tue, 13 May 2003 22:41:52 +0100 (BST)


The font size needs to be set for all terminals. This patch fixes that.
Please apply.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1077 -> 1.1078
# drivers/char/vt_ioctl.c 1.22 -> 1.23
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/12 jsimmons@maxwell.earthlink.net 1.1078
# [CONSOLE] This was the bug that was causing dual head (vga and mda) to lock up.
# --------------------------------------------
#
diff -Nru a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c
--- a/drivers/char/vt_ioctl.c Mon May 12 14:12:47 2003
+++ b/drivers/char/vt_ioctl.c Mon May 12 14:12:47 2003
@@ -869,13 +869,13 @@
if (clin > 32)
return -EINVAL;

- if (vlin)
- vc->vc_scan_lines = vlin;
- if (clin)
- vc->vc_font.height = clin;
-
- for (i = 0; i < MAX_NR_CONSOLES; i++)
+ for (i = 0; i < MAX_NR_CONSOLES; i++) {
+ if (vlin)
+ vc_cons[i].d->vc_scan_lines = vlin;
+ if (clin)
+ vc_cons[i].d->vc_font.height = clin;
vc_resize(i, cc, ll);
+ }
return 0;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/