From 5b05b5ede95b5aa68a46fdb2e8bd2105aa5091f2 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Thu, 11 Oct 2012 08:00:33 +0800 Subject: [PATCH] --- yaml --- r: 333277 b: refs/heads/master c: 49999ab27eab6289a8e4f450e148bdab521361b2 h: refs/heads/master i: 333275: 6d2e38ae0561325de0b15540a5eb0aed0007d8f2 v: v3 --- [refs] | 2 +- trunk/fs/autofs4/root.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9149ba0a3f6d..63411f00cf45 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 14ffe009ca60856555df3aec942239d8beed74d3 +refs/heads/master: 49999ab27eab6289a8e4f450e148bdab521361b2 diff --git a/trunk/fs/autofs4/root.c b/trunk/fs/autofs4/root.c index e7396cfdb109..91b11650722e 100644 --- a/trunk/fs/autofs4/root.c +++ b/trunk/fs/autofs4/root.c @@ -392,10 +392,12 @@ static struct vfsmount *autofs4_d_automount(struct path *path) ino->flags |= AUTOFS_INF_PENDING; spin_unlock(&sbi->fs_lock); status = autofs4_mount_wait(dentry); - if (status) - return ERR_PTR(status); spin_lock(&sbi->fs_lock); ino->flags &= ~AUTOFS_INF_PENDING; + if (status) { + spin_unlock(&sbi->fs_lock); + return ERR_PTR(status); + } } done: if (!(ino->flags & AUTOFS_INF_EXPIRING)) {