patch-2.4.7 linux/fs/dquot.c

Next file: linux/fs/exec.c
Previous file: linux/fs/devfs/util.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/fs/dquot.c linux/fs/dquot.c
@@ -1467,7 +1467,7 @@
 	if (IS_ERR(f))
 		goto out_lock;
 	error = -EIO;
-	if (!f->f_op || (!f->f_op->read && !f->f_op->write))
+	if (!f->f_op || !f->f_op->read || !f->f_op->write)
 		goto out_f;
 	inode = f->f_dentry->d_inode;
 	error = -EACCES;

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