patch-2.0.1 linux/drivers/block/rd.c

Next file: linux/drivers/block/xd.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.0/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -233,7 +233,7 @@
 #endif
 
 	if (DEVICE_NR(inode->i_rdev) >= NUM_RAMDISKS)
-		return -ENODEV;
+		return -ENXIO;
 
 	MOD_INC_USE_COUNT;
 

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