diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/autofs4/root.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index e7396cfdb10..91b11650722 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -392,10 +392,12 @@ static struct vfsmount *autofs4_d_automount(struct path *path) | |||
392 | ino->flags |= AUTOFS_INF_PENDING; | 392 | ino->flags |= AUTOFS_INF_PENDING; |
393 | spin_unlock(&sbi->fs_lock); | 393 | spin_unlock(&sbi->fs_lock); |
394 | status = autofs4_mount_wait(dentry); | 394 | status = autofs4_mount_wait(dentry); |
395 | if (status) | ||
396 | return ERR_PTR(status); | ||
397 | spin_lock(&sbi->fs_lock); | 395 | spin_lock(&sbi->fs_lock); |
398 | ino->flags &= ~AUTOFS_INF_PENDING; | 396 | ino->flags &= ~AUTOFS_INF_PENDING; |
397 | if (status) { | ||
398 | spin_unlock(&sbi->fs_lock); | ||
399 | return ERR_PTR(status); | ||
400 | } | ||
399 | } | 401 | } |
400 | done: | 402 | done: |
401 | if (!(ino->flags & AUTOFS_INF_EXPIRING)) { | 403 | if (!(ino->flags & AUTOFS_INF_EXPIRING)) { |