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
- Lines: 9
- Date:
Wed Jul 11 14:50:47 2001
- Orig file:
v2.4.6/linux/fs/dquot.c
- Orig date:
Tue Jul 3 17:08:21 2001
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)