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

Commit bf884891 authored by Al Viro's avatar Al Viro
Browse files

lockd: handle lockowner allocation failure in nlmclnt_proc()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 446945ab
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -161,6 +161,11 @@ int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl)
		return -ENOMEM;

	nlmclnt_locks_init_private(fl, host);
	if (!fl->fl_u.nfs_fl.owner) {
		/* lockowner allocation has failed */
		nlmclnt_release_call(call);
		return -ENOMEM;
	}
	/* Set up the argument struct */
	nlmclnt_setlockargs(call, fl);