aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index bc4b12ca537..fc7e57b3f38 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -581,6 +581,10 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
581 mutex_unlock(&dir->i_mutex); 581 mutex_unlock(&dir->i_mutex);
582 dput(dentry); 582 dput(dentry);
583 dentry = child; 583 dentry = child;
584 if (!dentry->d_inode) {
585 dput(dentry);
586 dentry = ERR_PTR(-ENOENT);
587 }
584 } while (!IS_ERR(dentry)); 588 } while (!IS_ERR(dentry));
585 _FreeXid(xid); 589 _FreeXid(xid);
586 kfree(full_path); 590 kfree(full_path);