summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Zhang <xiao.zhang@intel.com>2019-08-06 07:20:50 +0800
committerKevin Traynor <ktraynor@redhat.com>2019-09-13 10:37:20 +0100
commit08302ebe6fd695b8fd5ceb62b7f6ab21a85e3761 (patch)
treeccaaab0da381852b4ee7a8f14c4d599e7ed6f4e0
parentea783e5d3606b7b798839cbc331838f9b422cff3 (diff)
downloaddpdk-stable-08302ebe6fd695b8fd5ceb62b7f6ab21a85e3761.zip
dpdk-stable-08302ebe6fd695b8fd5ceb62b7f6ab21a85e3761.tar.gz
dpdk-stable-08302ebe6fd695b8fd5ceb62b7f6ab21a85e3761.tar.xz
net/ixgbe: fix address of first segment
[ upstream commit 739c35f08bc0296ffda47f006f1903a67527063f ] 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") Signed-off-by: Xiao Zhang <xiao.zhang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
-rw-r--r--drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c b/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c
index c9ba482..599ba30 100644
--- a/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c
+++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c
@@ -609,6 +609,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]);