From: Benjamin Coddington Date: Tue, 11 Apr 2017 16:50:07 +0000 (-0400) Subject: NFS4: remove a redundant lock range check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12a16d15b67c66fc0a8274d094a270e4fbaed3eb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git NFS4: remove a redundant lock range check flock64_to_posix_lock() is already doing this check Signed-off-by: Benjamin Coddington Reviewed-by: Jeff Layton Reviewed-by: Christoph Hellwig Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 6e9ff2d9a5bf..d682ef3b2da2 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6447,9 +6447,6 @@ nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request) ctx = nfs_file_open_context(filp); state = ctx->state; - if (request->fl_start < 0 || request->fl_end < 0) - return -EINVAL; - if (IS_GETLK(cmd)) { if (state != NULL) return nfs4_proc_getlk(state, F_GETLK, request);