Skip to content

Commit

Permalink
net/avf: fix address of first segment
Browse files Browse the repository at this point in the history
[ upstream commit ba38f91 ]

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: 319c421 ("net/avf: enable SSE Rx Tx")

Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
  • Loading branch information
xiaozha3 authored and kevintraynor committed Sep 4, 2019
1 parent eef15e6 commit a22b213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/avf/avf_rxtx_vec_sse.c
Expand Up @@ -521,6 +521,7 @@ avf_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]);
Expand Down

0 comments on commit a22b213

Please sign in to comment.