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

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

diff -u --recursive --new-file v2.0.0/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -358,7 +358,7 @@
 			filp->f_op = &urandom_fops;
 			break;
 		default:
-			return -ENODEV;
+			return -ENXIO;
 	}
 	if (filp->f_op && filp->f_op->open)
 		return filp->f_op->open(inode,filp);

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