Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 993
b: refs/heads/master
c: 51a1411
h: refs/heads/master
i:
  991: ef4afc6
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 5, 2005
1 parent c448301 commit ef0cceb
Show file tree
Hide file tree
Showing 2 changed files with 8 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: a0b8d32020681535700e7bd4dac29ecf25d944ae
refs/heads/master: 51a141104a37369be2822f423ed4444aa34d26a2
10 changes: 7 additions & 3 deletions trunk/fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,13 +991,17 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
goto out_put;

err = read_inode(root_inode);
if(err)
goto out_put;
if(err){
/* No iput in this case because the dput does that for us */
dput(sb->s_root);
sb->s_root = NULL;
goto out_free;
}

return(0);

out_put:
iput(root_inode);
iput(root_inode);
out_free:
kfree(name);
out:
Expand Down

0 comments on commit ef0cceb

Please sign in to comment.