diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index 9ec00139fcc9..d6d2d0dec826 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2291,6 +2291,7 @@ static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path if (!err && nd->flags & LOOKUP_DIRECTORY) if (!d_can_lookup(nd->path.dentry)) err = -ENOTDIR; + if (!err) { *path = nd->path; nd->path.mnt = NULL; |