aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index d5a23fd0da90..3ffef7f4e5cd 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2673,11 +2673,13 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
2673 if (!IS_ROOT(new)) { 2673 if (!IS_ROOT(new)) {
2674 spin_unlock(&inode->i_lock); 2674 spin_unlock(&inode->i_lock);
2675 dput(new); 2675 dput(new);
2676 iput(inode);
2676 return ERR_PTR(-EIO); 2677 return ERR_PTR(-EIO);
2677 } 2678 }
2678 if (d_ancestor(new, dentry)) { 2679 if (d_ancestor(new, dentry)) {
2679 spin_unlock(&inode->i_lock); 2680 spin_unlock(&inode->i_lock);
2680 dput(new); 2681 dput(new);
2682 iput(inode);
2681 return ERR_PTR(-EIO); 2683 return ERR_PTR(-EIO);
2682 } 2684 }
2683 write_seqlock(&rename_lock); 2685 write_seqlock(&rename_lock);