On Fri, 2017-03-31 at 23:15 -0400, Benjamin Coddington wrote: > flock64_to_posix_lock() is already doing this check > > Signed-off-by: Benjamin Coddington <bcodding@xxxxxxxxxx> > Reviewed-by: Jeff Layton <jeff.layton@xxxxxxxxxxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > --- > fs/nfs/nfs4proc.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c > index 0a0eaecf9676..9388899e4050 100644 > --- a/fs/nfs/nfs4proc.c > +++ b/fs/nfs/nfs4proc.c > @@ -6570,9 +6570,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); Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html