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)) {