X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fdpaa2%2Fdpaa2_mux.c;h=d347f4df51927129272f340e92588063fc713450;hb=ff4e52efb39517f75eccba261c87b48cb464b246;hp=811f417491f9dc3c9b779e6329c34541dd26fd8a;hpb=3d43972b1b4281d5fcdae80504bde9164a737253;p=dpdk.git diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index 811f417491..d347f4df51 100644 --- a/drivers/net/dpaa2/dpaa2_mux.c +++ b/drivers/net/dpaa2/dpaa2_mux.c @@ -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) {