patch-2.1.124 linux/fs/fcntl.c

Next file: linux/fs/proc/openpromfs.c
Previous file: linux/fs/ext2/ialloc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.123/linux/fs/fcntl.c linux/fs/fcntl.c
@@ -97,7 +97,7 @@
 
 	/* Did FASYNC state change? */
 	if ((arg ^ filp->f_flags) & FASYNC) {
-		if (filp->f_op->fasync)
+		if (filp->f_op && filp->f_op->fasync)
 			filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov