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

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

diff -u --recursive --new-file v2.0.0/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -306,7 +306,7 @@
 int vc_allocate(unsigned int i)		/* return 0 on success */
 {
 	if (i >= MAX_NR_CONSOLES)
-	  return -ENODEV;
+	  return -ENXIO;
 	if (!vc_cons[i].d) {
 	    long p, q;
 

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