diff options
Diffstat (limited to 'fs/namei.c')
-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 2e943ab04f32..175e81b8f261 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1090,7 +1090,7 @@ static struct dentry *lookup_real(struct inode *dir, struct dentry *dentry, | |||
1090 | return ERR_PTR(-ENOENT); | 1090 | return ERR_PTR(-ENOENT); |
1091 | } | 1091 | } |
1092 | 1092 | ||
1093 | old = dir->i_op->lookup(dir, dentry, nd); | 1093 | old = dir->i_op->lookup(dir, dentry, nd ? nd->flags : 0); |
1094 | if (unlikely(old)) { | 1094 | if (unlikely(old)) { |
1095 | dput(dentry); | 1095 | dput(dentry); |
1096 | dentry = old; | 1096 | dentry = old; |