diff options
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 3d9d2f965f84..48e60a187325 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1656,7 +1656,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path, | |||
1656 | if (path->dentry->d_inode->i_op->follow_link) | 1656 | if (path->dentry->d_inode->i_op->follow_link) |
1657 | return NULL; | 1657 | return NULL; |
1658 | error = -ENOTDIR; | 1658 | error = -ENOTDIR; |
1659 | if (*want_dir & !path->dentry->d_inode->i_op->lookup) | 1659 | if (*want_dir && !path->dentry->d_inode->i_op->lookup) |
1660 | goto exit_dput; | 1660 | goto exit_dput; |
1661 | path_to_nameidata(path, nd); | 1661 | path_to_nameidata(path, nd); |
1662 | audit_inode(pathname, nd->path.dentry); | 1662 | audit_inode(pathname, nd->path.dentry); |