Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75525
b: refs/heads/master
c: 46a39c1
h: refs/heads/master
i:
  75523: 488ee49
v: v3
  • Loading branch information
Eric Sandeen authored and Linus Torvalds committed Jan 17, 2008
1 parent 068125f commit 5a0db63
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6915719b36a97d28fab576c6fa2a20364b435fe6
refs/heads/master: 46a39c1cd5d2f804b27e9a4be3fb1b510dda9570
7 changes: 4 additions & 3 deletions trunk/fs/hfs/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp ke
mapping = tree->inode->i_mapping;
page = read_mapping_page(mapping, 0, NULL);
if (IS_ERR(page))
goto free_tree;
goto free_inode;

/* Load the header */
head = (struct hfs_btree_header_rec *)(kmap(page) + sizeof(struct hfs_bnode_desc));
Expand Down Expand Up @@ -99,11 +99,12 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp ke
page_cache_release(page);
return tree;

fail_page:
fail_page:
page_cache_release(page);
free_tree:
free_inode:
tree->inode->i_mapping->a_ops = &hfs_aops;
iput(tree->inode);
free_tree:
kfree(tree);
return NULL;
}
Expand Down

0 comments on commit 5a0db63

Please sign in to comment.