patch-2.1.67 linux/drivers/char/misc.c
Next file: linux/drivers/char/pc110pad.c
Previous file: linux/drivers/char/joystick.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sat Nov 29 10:33:19 1997
- Orig file:
v2.1.66/linux/drivers/char/misc.c
- Orig date:
Wed Nov 12 13:34:26 1997
diff -u --recursive --new-file v2.1.66/linux/drivers/char/misc.c linux/drivers/char/misc.c
@@ -116,7 +116,7 @@
return -ENODEV;
}
- if ((file->f_op = c->fops))
+ if ((file->f_op = c->fops) && file->f_op->open)
return file->f_op->open(inode,file);
else
return -ENODEV;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov