patch-2.4.21 linux-2.4.21/drivers/char/raw.c

Next file: linux-2.4.21/drivers/char/rio/rioboot.c
Previous file: linux-2.4.21/drivers/char/random.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/char/raw.c linux-2.4.21/drivers/char/raw.c
@@ -170,7 +170,7 @@
 {
 	int minor = minor(inode->i_rdev), err; 
 	struct block_device *b; 
-	if (minor < 1 && minor > 255)
+	if (minor < 1 || minor > 255)
 		return -ENODEV;
 
 	b = raw_devices[minor].binding;

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