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
- Lines: 9
- Date:
2003-06-13 07:51:33.000000000 -0700
- Orig file:
linux-2.4.20/drivers/char/raw.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
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)