if (!mxs_ssp_bus_id_valid(id))
return -ENODEV;
- mmc = malloc(sizeof(struct mmc));
+ mmc = calloc(sizeof(struct mmc), 1);
if (!mmc)
return -ENOMEM;
- priv = malloc(sizeof(struct mxsmmc_priv));
+ priv = calloc(sizeof(struct mxsmmc_priv), 1);
if (!priv) {
free(mmc);
return -ENOMEM;