aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index ef3a55bf86b..ff7d2995d25 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -881,8 +881,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
881 rc = cifs_get_inode_info(&inode, full_path, NULL, sb, 881 rc = cifs_get_inode_info(&inode, full_path, NULL, sb,
882 xid, NULL); 882 xid, NULL);
883 883
884 if (!inode) 884 if (!inode) {
885 return ERR_PTR(rc); 885 inode = ERR_PTR(rc);
886 goto out;
887 }
886 888
887#ifdef CONFIG_CIFS_FSCACHE 889#ifdef CONFIG_CIFS_FSCACHE
888 /* populate tcon->resource_id */ 890 /* populate tcon->resource_id */
@@ -898,13 +900,11 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
898 inode->i_uid = cifs_sb->mnt_uid; 900 inode->i_uid = cifs_sb->mnt_uid;
899 inode->i_gid = cifs_sb->mnt_gid; 901 inode->i_gid = cifs_sb->mnt_gid;
900 } else if (rc) { 902 } else if (rc) {
901 kfree(full_path);
902 _FreeXid(xid);
903 iget_failed(inode); 903 iget_failed(inode);
904 return ERR_PTR(rc); 904 inode = ERR_PTR(rc);
905 } 905 }
906 906
907 907out:
908 kfree(full_path); 908 kfree(full_path);
909 /* can not call macro FreeXid here since in a void func 909 /* can not call macro FreeXid here since in a void func
910 * TODO: This is no longer true 910 * TODO: This is no longer true