From: Joyce Kong Date: Tue, 24 Sep 2019 05:48:45 +0000 (+0800) Subject: net/ixgbe: fix address of first segment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=648255d43e4a820274cbb02cca3ece445d8de302;p=dpdk.git net/ixgbe: fix address of first segment This patch fixes (dereference after null check) coverity issue. The address of first segmented packets was not set correctly during reassembling packets which led to this issue. Coverity issue: 13245 Fixes: 8a44c15aa57d ("net/ixgbe: extract non-x86 specific code from vector driver") Cc: stable@dpdk.org Signed-off-by: Joyce Kong Reviewed-by: Xiao Zhang Reviewed-by: Xiaolong Ye --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c b/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c index eeb825911c..26c0ef5aec 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c +++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c @@ -375,6 +375,7 @@ ixgbe_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, i++; if (i == nb_bufs) return nb_bufs; + rxq->pkt_first_seg = rx_pkts[i]; } return i + reassemble_packets(rxq, &rx_pkts[i], nb_bufs - i, &split_flags[i]);