diff --git a/src/soc/pciectl.c b/src/soc/pciectl.c index 20d23ed..16da49f 100644 --- a/src/soc/pciectl.c +++ b/src/soc/pciectl.c @@ -764,7 +764,7 @@ static int pciectl_driver_init(struct soc *soc, struct soc_device *dev) struct pciectl *ctx; int rc; - ctx = malloc(sizeof(*ctx)); + ctx = calloc(1, sizeof(*ctx)); if (!ctx) { return -ENOMEM; }