Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9221
b: refs/heads/master
c: f71626a
h: refs/heads/master
i:
  9219: 4aec745
v: v3
  • Loading branch information
Latchesar Ionkov authored and Linus Torvalds committed Sep 23, 2005
1 parent 036f801 commit eab1ae0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 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: a1f9d8d23fef301ba0c0b4983e0aa947168e1c37
refs/heads/master: f71626a461e7d4af099ca71830ea530e96c22e11
24 changes: 7 additions & 17 deletions trunk/fs/9p/vfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ static struct super_block *v9fs_get_sb(struct file_system_type

if ((newfid = v9fs_session_init(v9ses, dev_name, data)) < 0) {
dprintk(DEBUG_ERROR, "problem initiating session\n");
retval = newfid;
goto free_session;
kfree(v9ses);
return ERR_PTR(newfid);
}

sb = sget(fs_type, NULL, v9fs_set_super, v9ses);
Expand All @@ -150,7 +150,7 @@ static struct super_block *v9fs_get_sb(struct file_system_type

if (!root) {
retval = -ENOMEM;
goto release_inode;
goto put_back_sb;
}

sb->s_root = root;
Expand All @@ -159,7 +159,7 @@ static struct super_block *v9fs_get_sb(struct file_system_type
root_fid = v9fs_fid_create(root);
if (root_fid == NULL) {
retval = -ENOMEM;
goto release_dentry;
goto put_back_sb;
}

root_fid->fidopen = 0;
Expand All @@ -182,25 +182,15 @@ static struct super_block *v9fs_get_sb(struct file_system_type

if (stat_result < 0) {
retval = stat_result;
goto release_dentry;
goto put_back_sb;
}

return sb;

release_dentry:
dput(sb->s_root);

release_inode:
iput(inode);

put_back_sb:
put_back_sb:
/* deactivate_super calls v9fs_kill_super which will frees the rest */
up_write(&sb->s_umount);
deactivate_super(sb);
v9fs_session_close(v9ses);

free_session:
kfree(v9ses);

return ERR_PTR(retval);
}

Expand Down

0 comments on commit eab1ae0

Please sign in to comment.