summaryrefslogtreecommitdiff
path: root/host/lib/host_fw_preamble2.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/host_fw_preamble2.c')
-rw-r--r--host/lib/host_fw_preamble2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/host_fw_preamble2.c b/host/lib/host_fw_preamble2.c
index 759af1b4..87c4ecdd 100644
--- a/host/lib/host_fw_preamble2.c
+++ b/host/lib/host_fw_preamble2.c
@@ -55,7 +55,7 @@ int vb2_fw_preamble_create(struct vb2_fw_preamble2 **fp_ptr,
fp.c.total_size = fp.sig_offset + sig_size;
/* Allocate buffer and copy components */
- buf = malloc(fp.c.total_size);
+ buf = calloc(fp.c.total_size, 1);
if (!buf)
return VB2_FW_PREAMBLE_CREATE_ALLOC;