patch-2.1.23 linux/drivers/char/vc_screen.c

Next file: linux/drivers/char/vga.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/drivers/char/vc_screen.c linux/drivers/char/vc_screen.c
@@ -98,7 +98,7 @@
 	unsigned int currcons = MINOR(inode->i_rdev);
 	int viewed, attr, size, read;
 	char *buf0;
-	unsigned short *org;
+	unsigned short *org = NULL;
 
 	attr = (currcons & 128);
 	currcons = (currcons & 127);
@@ -159,7 +159,7 @@
 	unsigned int currcons = MINOR(inode->i_rdev);
 	int viewed, attr, size, written;
 	const char *buf0;
-	unsigned short *org;
+	unsigned short *org = NULL;
 
 	attr = (currcons & 128);
 	currcons = (currcons & 127);
@@ -243,7 +243,7 @@
 	vcs_read,	/* read */
 	vcs_write,	/* write */
 	NULL,		/* readdir */
-	NULL,		/* select */
+	NULL,		/* poll */
 	NULL,		/* ioctl */
 	NULL,		/* mmap */
 	vcs_open,	/* open */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov