patch-2.2.16 linux/drivers/char/console.c

Next file: linux/drivers/char/cpia.c
Previous file: linux/drivers/char/README.computone
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -684,7 +684,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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)