summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyce Kong <joyce.kong@arm.com>2019-09-24 13:48:44 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-20 15:43:27 +0100
commitb1e09e93de9c670a60c1df11b71802092e4c72f2 (patch)
tree0791698053e8236f7db688f04ea77f976e8c7869
parent134d1a3a96f42786588ae7c18cae16edec3bc0b0 (diff)
downloaddpdk-next-net-intel-b1e09e93de9c670a60c1df11b71802092e4c72f2.zip
dpdk-next-net-intel-b1e09e93de9c670a60c1df11b71802092e4c72f2.tar.gz
dpdk-next-net-intel-b1e09e93de9c670a60c1df11b71802092e4c72f2.tar.xz
net/i40e: 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: 343422, 343403 Fixes: ca74903b75cf ("net/i40e: extract non-x86 specific code from vector driver") Cc: stable@dpdk.org Signed-off-by: Joyce Kong <joyce.kong@arm.com> Reviewed-by: Xiao Zhang <xiao.zhang@intel.com> Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
-rw-r--r--drivers/net/i40e/i40e_rxtx_vec_neon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c b/drivers/net/i40e/i40e_rxtx_vec_neon.c
index 864eb9a..deb185f 100644
--- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
+++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
@@ -474,6 +474,7 @@ i40e_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]);