diff options
Diffstat (limited to 'fs/autofs4/root.c')
| -rw-r--r-- | fs/autofs4/root.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 2bbcc8151dc3..a54a946a50ae 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
| @@ -368,7 +368,8 @@ static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
| 368 | * so we don't need to follow the mount. | 368 | * so we don't need to follow the mount. |
| 369 | */ | 369 | */ |
| 370 | if (d_mountpoint(dentry)) { | 370 | if (d_mountpoint(dentry)) { |
| 371 | if (!autofs4_follow_mount(&nd->mnt, &nd->dentry)) { | 371 | if (!autofs4_follow_mount(&nd->path.mnt, |
| 372 | &nd->path.dentry)) { | ||
| 372 | status = -ENOENT; | 373 | status = -ENOENT; |
| 373 | goto out_error; | 374 | goto out_error; |
| 374 | } | 375 | } |
| @@ -382,7 +383,7 @@ done: | |||
| 382 | return NULL; | 383 | return NULL; |
| 383 | 384 | ||
| 384 | out_error: | 385 | out_error: |
| 385 | path_release(nd); | 386 | path_put(&nd->path); |
| 386 | return ERR_PTR(status); | 387 | return ERR_PTR(status); |
| 387 | } | 388 | } |
| 388 | 389 | ||
