Skip to content

Commit

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

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: 8a44c15 ("net/ixgbe: extract non-x86 specific code from vector driver")

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>
  • Loading branch information
JoyceKong-Arm authored and kevintraynor committed Dec 9, 2019
1 parent 2ecdb1d commit b7626d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
Expand Up @@ -374,6 +374,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]);
Expand Down

0 comments on commit b7626d6

Please sign in to comment.