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

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