diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 5e373c30e8d4..6843e0a37de8 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4885,7 +4885,7 @@ nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request) | |||
4885 | * Don't rely on the VFS having checked the file open mode, | 4885 | * Don't rely on the VFS having checked the file open mode, |
4886 | * since it won't do this for flock() locks. | 4886 | * since it won't do this for flock() locks. |
4887 | */ | 4887 | */ |
4888 | switch (request->fl_type & (F_RDLCK|F_WRLCK|F_UNLCK)) { | 4888 | switch (request->fl_type) { |
4889 | case F_RDLCK: | 4889 | case F_RDLCK: |
4890 | if (!(filp->f_mode & FMODE_READ)) | 4890 | if (!(filp->f_mode & FMODE_READ)) |
4891 | return -EBADF; | 4891 | return -EBADF; |