[PATCH] to console.c (2.2.12 and 2.3.16)

Neil Booth (NeilB@earthling.net)
Mon, 6 Sep 1999 21:53:17 +0900


A rare bad loop index error, I imagine.

Neil.

--- /usr/src/kernel/linux-2.3.16/drivers/char/console.c Mon Sep 6 19:33:31 1999
+++ linux/drivers/char/console.c Mon Sep 6 21:38:32 1999
@@ -681,7 +681,7 @@
else {
unsigned short *p = (unsigned short *) kmalloc(ss, GFP_USER);
if (!p) {
- for (i = 0; i< currcons; i++)
+ for (i = first; i < currcons; i++)
if (newscreens[i])
kfree_s(newscreens[i], ss);
return -ENOMEM;

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