mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
lockd: handle lockowner allocation failure in nlmclnt_proc()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
446945ab9a
commit
bf8848918d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user