Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33636
b: refs/heads/master
c: f5fb09f
h: refs/heads/master
v: v3
  • Loading branch information
Andries Brouwer authored and Linus Torvalds committed Aug 27, 2006
1 parent 5d2cb5b commit 9212400
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: fb8d81e47783f9198f3d6248bd4c0d16a1d5424e
refs/heads/master: f5fb09fa3392ad43fbcfc2f4580752f383ab5996
13 changes: 10 additions & 3 deletions trunk/fs/minix/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
/*
* Allocate the buffer map to keep the superblock small.
*/
if (sbi->s_imap_blocks == 0 || sbi->s_zmap_blocks == 0)
goto out_illegal_sb;
i = (sbi->s_imap_blocks + sbi->s_zmap_blocks) * sizeof(bh);
map = kmalloc(i, GFP_KERNEL);
if (!map)
Expand Down Expand Up @@ -263,7 +265,7 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)

out_no_bitmap:
printk("MINIX-fs: bad superblock or unable to read bitmaps\n");
out_freemap:
out_freemap:
for (i = 0; i < sbi->s_imap_blocks; i++)
brelse(sbi->s_imap[i]);
for (i = 0; i < sbi->s_zmap_blocks; i++)
Expand All @@ -276,11 +278,16 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
printk("MINIX-fs: can't allocate map\n");
goto out_release;

out_illegal_sb:
if (!silent)
printk("MINIX-fs: bad superblock\n");
goto out_release;

out_no_fs:
if (!silent)
printk("VFS: Can't find a Minix or Minix V2 filesystem "
"on device %s\n", s->s_id);
out_release:
out_release:
brelse(bh);
goto out;

Expand All @@ -290,7 +297,7 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)

out_bad_sb:
printk("MINIX-fs: unable to read superblock\n");
out:
out:
s->s_fs_info = NULL;
kfree(sbi);
return -EINVAL;
Expand Down

0 comments on commit 9212400

Please sign in to comment.