]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/dpaa2/dpaa2_mux.c
net/ice/base: change address parameter to 16-bit
[dpdk.git] / drivers / net / dpaa2 / dpaa2_mux.c
index 811f417491f9dc3c9b779e6329c34541dd26fd8a..d347f4df51927129272f340e92588063fc713450 100644 (file)
@@ -68,6 +68,9 @@ rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id,
        int ret;
        static int i;
 
+       if (!pattern || !actions || !pattern[0] || !actions[0])
+               return NULL;
+
        /* Find the DPDMUX from dpdmux_id in our list */
        dpdmux_dev = get_dpdmux_from_id(dpdmux_id);
        if (!dpdmux_dev) {