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

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

diff -u --recursive --new-file v2.4.5/linux/drivers/char/raw.c linux/drivers/char/raw.c
@@ -194,7 +194,7 @@
 			break;
 		
 		minor = rq.raw_minor;
-		if (minor == 0 || minor > MINORMASK) {
+		if (minor <= 0 || minor > MINORMASK) {
 			err = -EINVAL;
 			break;
 		}

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