Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25505
b: refs/heads/master
c: 00fbc6d
h: refs/heads/master
i:
  25503: 6f0499f
v: v3
  • Loading branch information
Eric Van Hensbergen authored and Linus Torvalds committed Apr 11, 2006
1 parent 6699a0a commit 7572ab9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: e1a2509023785bd3199ac068ab80155aeba01265
refs/heads/master: 00fbc6dfe7c4487f812829bff79c3121c8fd3bca
13 changes: 10 additions & 3 deletions trunk/fs/9p/vfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,13 @@ 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");
kfree(v9ses);
return ERR_PTR(newfid);
sb = ERR_PTR(newfid);
goto out_free_session;
}

sb = sget(fs_type, NULL, v9fs_set_super, v9ses);

if (IS_ERR(sb))
goto out_close_session;
v9fs_fill_super(sb, v9ses, flags);

inode = v9fs_get_inode(sb, S_IFDIR | mode);
Expand Down Expand Up @@ -185,6 +186,12 @@ static struct super_block *v9fs_get_sb(struct file_system_type

return sb;

out_close_session:
v9fs_session_close(v9ses);
out_free_session:
kfree(v9ses);
return sb;

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

0 comments on commit 7572ab9

Please sign in to comment.