Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167747
b: refs/heads/master
c: 47f365e
h: refs/heads/master
i:
  167745: 1327efd
  167743: 17ce7af
v: v3
  • Loading branch information
Jeff Mahoney authored and Linus Torvalds committed Oct 29, 2009
1 parent 5cb6b0d commit cb52c75
Show file tree
Hide file tree
Showing 2 changed files with 6 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: cf6e693212263d33c5882e4653df89a2fca4c0c4
refs/heads/master: 47f365eb575735c6b2edf5d08e0d16d26a9c23bd
5 changes: 5 additions & 0 deletions trunk/fs/hfs/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp ke
}
unlock_new_inode(tree->inode);

if (!HFS_I(tree->inode)->first_blocks) {
printk(KERN_ERR "hfs: invalid btree extent records (0 size).\n");
goto free_inode;
}

mapping = tree->inode->i_mapping;
page = read_mapping_page(mapping, 0, NULL);
if (IS_ERR(page))
Expand Down

0 comments on commit cb52c75

Please sign in to comment.