Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207738
b: refs/heads/master
c: 9442e54
h: refs/heads/master
v: v3
  • Loading branch information
Bob Copeland committed Jul 10, 2010
1 parent 0f4874f commit 5b9b6cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f068272cb2f134a194b93e94a8e0672bfce48cd8
refs/heads/master: 9442e54f433eff9b6fbd0836611df4c1919df370
9 changes: 9 additions & 0 deletions trunk/fs/omfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,15 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
goto out_brelse_bh2;
}

if (sbi->s_bitmap_ino != ~0ULL &&
sbi->s_bitmap_ino > sbi->s_num_blocks) {
printk(KERN_ERR "omfs: free space bitmap location is corrupt "
"(%llx, total blocks %llx)\n",
(unsigned long long) sbi->s_bitmap_ino,
(unsigned long long) sbi->s_num_blocks);
goto out_brelse_bh2;
}

ret = omfs_get_imap(sb);
if (ret)
goto out_brelse_bh2;
Expand Down

0 comments on commit 5b9b6cb

Please sign in to comment.