Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292329
b: refs/heads/master
c: 1688f86
h: refs/heads/master
i:
  292327: ba82e96
v: v3
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 2a6504e commit dd67a4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: ea29c6950a0305f2af7fd4a2021a6e946ada0174
refs/heads/master: 1688f86046e5572623b2eacb685eb707fe21fb0a
8 changes: 4 additions & 4 deletions trunk/fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1496,11 +1496,13 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
root_inode->i_ino = MSDOS_ROOT_INO;
root_inode->i_version = 1;
error = fat_read_root(root_inode);
if (error < 0)
if (error < 0) {
iput(root_inode);
goto out_fail;
}
error = -ENOMEM;
insert_inode_hash(root_inode);
sb->s_root = d_alloc_root(root_inode);
sb->s_root = d_make_root(root_inode);
if (!sb->s_root) {
fat_msg(sb, KERN_ERR, "get root inode failed");
goto out_fail;
Expand All @@ -1516,8 +1518,6 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
out_fail:
if (fat_inode)
iput(fat_inode);
if (root_inode)
iput(root_inode);
unload_nls(sbi->nls_io);
unload_nls(sbi->nls_disk);
if (sbi->options.iocharset != fat_default_iocharset)
Expand Down

0 comments on commit dd67a4c

Please sign in to comment.