aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-07-29 15:17:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-29 15:17:39 -0400
commitbf8848918d751c1fb86f6514a75bf8d406f1c3c3 (patch)
tree8311cbd3ea3a5f2559a92daff71ca6b078f7ffdf /fs
parent446945ab9a82515af4b099107eda27050e077c58 (diff)
lockd: handle lockowner allocation failure in nlmclnt_proc()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/lockd/clntproc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c
index 27c74f32671b..05d29124c6ab 100644
--- a/fs/lockd/clntproc.c
+++ b/fs/lockd/clntproc.c
@@ -161,6 +161,11 @@ int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl)
161 return -ENOMEM; 161 return -ENOMEM;
162 162
163 nlmclnt_locks_init_private(fl, host); 163 nlmclnt_locks_init_private(fl, host);
164 if (!fl->fl_u.nfs_fl.owner) {
165 /* lockowner allocation has failed */
166 nlmclnt_release_call(call);
167 return -ENOMEM;
168 }
164 /* Set up the argument struct */ 169 /* Set up the argument struct */
165 nlmclnt_setlockargs(call, fl); 170 nlmclnt_setlockargs(call, fl);
166 171