diff options
Diffstat (limited to 'fs/hfsplus/btree.c')
-rw-r--r-- | fs/hfsplus/btree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hfsplus/btree.c b/fs/hfsplus/btree.c index cfc852fdd1b5..a9b9e872e29a 100644 --- a/fs/hfsplus/btree.c +++ b/fs/hfsplus/btree.c | |||
@@ -24,10 +24,9 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id) | |||
24 | struct page *page; | 24 | struct page *page; |
25 | unsigned int size; | 25 | unsigned int size; |
26 | 26 | ||
27 | tree = kmalloc(sizeof(*tree), GFP_KERNEL); | 27 | tree = kzalloc(sizeof(*tree), GFP_KERNEL); |
28 | if (!tree) | 28 | if (!tree) |
29 | return NULL; | 29 | return NULL; |
30 | memset(tree, 0, sizeof(*tree)); | ||
31 | 30 | ||
32 | init_MUTEX(&tree->tree_lock); | 31 | init_MUTEX(&tree->tree_lock); |
33 | spin_lock_init(&tree->hash_lock); | 32 | spin_lock_init(&tree->hash_lock); |