aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index c61edd0318c3..41e2085d430b 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1652,6 +1652,9 @@ struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)
1652{ 1652{
1653 struct dentry *new = NULL; 1653 struct dentry *new = NULL;
1654 1654
1655 if (IS_ERR(inode))
1656 return ERR_CAST(inode);
1657
1655 if (inode && S_ISDIR(inode->i_mode)) { 1658 if (inode && S_ISDIR(inode->i_mode)) {
1656 spin_lock(&inode->i_lock); 1659 spin_lock(&inode->i_lock);
1657 new = __d_find_alias(inode, 1); 1660 new = __d_find_alias(inode, 1);