diff --git a/lib/ioat/ioat.c b/lib/ioat/ioat.c index f4fa98f9f..db119c5c9 100644 --- a/lib/ioat/ioat.c +++ b/lib/ioat/ioat.c @@ -498,7 +498,7 @@ ioat_attach(void *device) struct ioat_channel *ioat; uint32_t cmd_reg; - ioat = malloc(sizeof(struct ioat_channel)); + ioat = calloc(1, sizeof(struct ioat_channel)); if (ioat == NULL) { return NULL; }