net/cxgbe: skip parsing match items with no spec
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 14 Dec 2018 19:01:54 +0000 (00:31 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:40 +0000 (16:22 +0100)
commitcadce5ee8aec5236d06474a94db0ba0ec6a48321
tree60a38c0b8a83f0ef436bfa5215e69879a76caa3e
parent27288219c944481ad4f2358be0a2eb8ead4a4e21
net/cxgbe: skip parsing match items with no spec

Skip parsing pattern match items that have no spec. This fixes NULL
dereference when accessing their non-existent spec.

Fixes: ee61f5113b17 ("net/cxgbe: parse and validate flows")
Cc: stable@dpdk.org
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_flow.c