]> git.droids-corp.org - dpdk.git/blobdiff - drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
bus/fslmc: fix to reset portal memory before use
[dpdk.git] / drivers / bus / fslmc / portal / dpaa2_hw_dpio.c
index ce0699842635b12e6b8eb9b7238840cedf867244..4fc6efec5745b2a1a8adccad4391c020f1e42ce6 100644 (file)
@@ -369,6 +369,8 @@ dpaa2_create_dpio_device(int vdev_fd,
        dpio_dev->mc_portal = rte_mcp_ptr_list[MC_PORTAL_INDEX];
 
        dpio_dev->dpio = malloc(sizeof(struct fsl_mc_io));
+       memset(dpio_dev->dpio, 0, sizeof(struct fsl_mc_io));
+
        if (!dpio_dev->dpio) {
                DPAA2_BUS_ERR("Memory allocation failure");
                goto err;