diff options
Diffstat (limited to 'fs/squashfs/namei.c')
-rw-r--r-- | fs/squashfs/namei.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/squashfs/namei.c b/fs/squashfs/namei.c index 4bc63ac64bc0..51b36958492b 100644 --- a/fs/squashfs/namei.c +++ b/fs/squashfs/namei.c | |||
@@ -232,10 +232,7 @@ static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry, | |||
232 | 232 | ||
233 | exit_lookup: | 233 | exit_lookup: |
234 | kfree(dire); | 234 | kfree(dire); |
235 | if (inode) | 235 | return d_splice_alias(inode, dentry); |
236 | return d_splice_alias(inode, dentry); | ||
237 | d_add(dentry, inode); | ||
238 | return ERR_PTR(0); | ||
239 | 236 | ||
240 | data_error: | 237 | data_error: |
241 | err = -EIO; | 238 | err = -EIO; |