summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Zhang <xiao.zhang@intel.com>2019-08-06 07:20:53 +0800
committerQi Zhang <qi.z.zhang@intel.com>2019-08-06 13:30:42 +0200
commitba38f91468a896d9363e92261cbf17c6517e098a (patch)
tree6bd0c2078ac25eb5f7ea2649a4e65d236a7bacca
parent4916f63985ddb56af43980252d1134d051523685 (diff)
downloaddpdk-ba38f91468a896d9363e92261cbf17c6517e098a.zip
dpdk-ba38f91468a896d9363e92261cbf17c6517e098a.tar.gz
dpdk-ba38f91468a896d9363e92261cbf17c6517e098a.tar.xz
net/iavf: 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: 343447 Fixes: 319c421f3890 ("net/avf: enable SSE Rx Tx") Cc: stable@dpdk.org Signed-off-by: Xiao Zhang <xiao.zhang@intel.com> Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
-rw-r--r--drivers/net/iavf/iavf_rxtx_vec_sse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf/iavf_rxtx_vec_sse.c
index 3d98514..cc71f23 100644
--- a/drivers/net/iavf/iavf_rxtx_vec_sse.c
+++ b/drivers/net/iavf/iavf_rxtx_vec_sse.c
@@ -521,6 +521,7 @@ iavf_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]);