|
@@ -382,7 +382,7 @@ static int ocfs2_map_slot_buffers(struct ocfs2_super *osb,
|
|
|
|
|
|
trace_ocfs2_map_slot_buffers(bytes, si->si_blocks);
|
|
trace_ocfs2_map_slot_buffers(bytes, si->si_blocks);
|
|
|
|
|
|
- si->si_bh = kzalloc(sizeof(struct buffer_head *) * si->si_blocks,
|
|
|
|
|
|
+ si->si_bh = kcalloc(si->si_blocks, sizeof(struct buffer_head *),
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!si->si_bh) {
|
|
if (!si->si_bh) {
|
|
status = -ENOMEM;
|
|
status = -ENOMEM;
|