aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4/waitq.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2008-07-24 00:30:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:32 -0400
commitf4c7da02615bebcaf89f15a8d055922f515160b8 (patch)
tree1da0aa09fd27b35628562648b5da5bf3af9d2d8b /fs/autofs4/waitq.c
parenta1362fe92f1bde687b3a9e93d6b8d105d0a84f74 (diff)
autofs4: add missing kfree
It see that the patch tittled "autofs4 - fix pending mount race" is missing a change that I had recently made. It's missing a kfree for the case mutex_lock_interruptible() fails to aquire the wait queue mutex. Signed-off-by: Ian Kent <raven@themaw.net> Cc: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs4/waitq.c')
-rw-r--r--fs/autofs4/waitq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index cd3b2a67169..1132cc2a031 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -332,8 +332,10 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
332 qstr.name = name; 332 qstr.name = name;
333 qstr.hash = full_name_hash(name, qstr.len); 333 qstr.hash = full_name_hash(name, qstr.len);
334 334
335 if (mutex_lock_interruptible(&sbi->wq_mutex)) 335 if (mutex_lock_interruptible(&sbi->wq_mutex)) {
336 kfree(qstr.name);
336 return -EINTR; 337 return -EINTR;
338 }
337 339
338 ret = validate_request(&wq, sbi, &qstr, dentry, notify); 340 ret = validate_request(&wq, sbi, &qstr, dentry, notify);
339 if (ret <= 0) { 341 if (ret <= 0) {