Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1948a64 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix setlease error return



This actually makes a difference in the 4.1 case, since we use the
status to decide what reason to give the client for the delegation
refusal (see nfsd4_open_deleg_none_ext), and in theory a client might
choose suboptimal behavior if we give the wrong answer.

Reported-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent df66e753
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3028,7 +3028,7 @@ static int nfs4_setlease(struct nfs4_delegation *dp)
	if (status) {
		list_del_init(&dp->dl_perclnt);
		locks_free_lock(fl);
		return -ENOMEM;
		return status;
	}
	fp->fi_lease = fl;
	fp->fi_deleg_file = get_file(fl->fl_file);