]> err.no Git - linux-2.6/blobdiff - fs/hfs/btree.c
Merge branch 'master' into 83xx
[linux-2.6] / fs / hfs / btree.c
index 40035799431992573e1e97f87e25e666f1061ddf..5fd0ed71f92331c3553ef9d563c0543e9fc9e9f6 100644 (file)
@@ -21,10 +21,9 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp ke
        struct page *page;
        unsigned int size;
 
-       tree = kmalloc(sizeof(*tree), GFP_KERNEL);
+       tree = kzalloc(sizeof(*tree), GFP_KERNEL);
        if (!tree)
                return NULL;
-       memset(tree, 0, sizeof(*tree));
 
        init_MUTEX(&tree->tree_lock);
        spin_lock_init(&tree->hash_lock);