Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190891
b: refs/heads/master
c: 684bdc7
h: refs/heads/master
i:
  190889: 4e93d37
  190887: ff8c01c
v: v3
  • Loading branch information
Jan Blunck authored and Al Viro committed May 15, 2010
1 parent f691c90 commit 6ad046f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 404e781249f003a37a140756fc4aeae463dcb217
refs/heads/master: 684bdc7ff95e0c1d4b0bcf236491840b55a54189
13 changes: 6 additions & 7 deletions trunk/fs/jfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,8 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
/* initialize the mount flag and determine the default error handler */
flag = JFS_ERR_REMOUNT_RO;

if (!parse_options((char *) data, sb, &newLVSize, &flag)) {
kfree(sbi);
return -EINVAL;
}
if (!parse_options((char *) data, sb, &newLVSize, &flag))
goto out_kfree;
sbi->flag = flag;

#ifdef CONFIG_JFS_POSIX_ACL
Expand All @@ -458,7 +456,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)

if (newLVSize) {
printk(KERN_ERR "resize option for remount only\n");
return -EINVAL;
goto out_kfree;
}

/*
Expand All @@ -478,7 +476,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
inode = new_inode(sb);
if (inode == NULL) {
ret = -ENOMEM;
goto out_kfree;
goto out_unload;
}
inode->i_ino = 0;
inode->i_nlink = 1;
Expand Down Expand Up @@ -550,9 +548,10 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
make_bad_inode(sbi->direct_inode);
iput(sbi->direct_inode);
sbi->direct_inode = NULL;
out_kfree:
out_unload:
if (sbi->nls_tab)
unload_nls(sbi->nls_tab);
out_kfree:
kfree(sbi);
return ret;
}
Expand Down

0 comments on commit 6ad046f

Please sign in to comment.