diff options
Diffstat (limited to 'extent_io.c')
-rw-r--r-- | extent_io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extent_io.c b/extent_io.c index 07695ef8..75496ce9 100644 --- a/extent_io.c +++ b/extent_io.c @@ -538,12 +538,11 @@ static struct extent_buffer *__alloc_extent_buffer(struct extent_io_tree *tree, { struct extent_buffer *eb; - eb = malloc(sizeof(struct extent_buffer) + blocksize); + eb = calloc(1, sizeof(struct extent_buffer) + blocksize); if (!eb) { BUG(); return NULL; } - memset(eb, 0, sizeof(struct extent_buffer) + blocksize); eb->start = bytenr; eb->len = blocksize; |