Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222761
b: refs/heads/master
c: a7851ce
h: refs/heads/master
i:
  222759: 47cae97
v: v3
  • Loading branch information
Oskar Schirmer authored and Steve French committed Nov 11, 2010
1 parent fe49a22 commit 5f76bce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebe2e91e000c59aed0300d81815f451c85e0bda6
refs/heads/master: a7851ce73b9fdef53f251420e6883cf4f3766534
12 changes: 6 additions & 6 deletions trunk/fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
rc = cifs_get_inode_info(&inode, full_path, NULL, sb,
xid, NULL);

if (!inode)
return ERR_PTR(rc);
if (!inode) {
inode = ERR_PTR(rc);
goto out;
}

#ifdef CONFIG_CIFS_FSCACHE
/* populate tcon->resource_id */
Expand All @@ -898,13 +900,11 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
inode->i_uid = cifs_sb->mnt_uid;
inode->i_gid = cifs_sb->mnt_gid;
} else if (rc) {
kfree(full_path);
_FreeXid(xid);
iget_failed(inode);
return ERR_PTR(rc);
inode = ERR_PTR(rc);
}


out:
kfree(full_path);
/* can not call macro FreeXid here since in a void func
* TODO: This is no longer true
Expand Down

0 comments on commit 5f76bce

Please sign in to comment.