> -----Original Message-----
> From: Joyce Kong [mailto:joyce.k...@arm.com]
> Sent: Tuesday, September 24, 2019 1:49 PM
> To: dev@dpdk.org
> Cc: n...@arm.com; tho...@monjalon.net; jer...@marvell.com; Zhang, Xiao
> <xiao.zh...@intel.com>; gavin...@arm.com; honnappa.nagaraha...@arm.com;
> sta...@dpdk.org
> Subject: [PATCH 2/2] net/ixgbe: 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: 13245
> Fixes: 8a44c15aa57d ("net/ixgbe: extract non-x86 specific code from vector
> driver")
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Joyce Kong <joyce.k...@arm.com>
> ---
>  drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
> b/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
> index eeb8259..26c0ef5 100644
> --- a/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
> +++ b/drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
> @@ -375,6 +375,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]);
> --
> 2.7.4

Reviewed-by: Xiao Zhang <xiao.zh...@intel.com>

Reply via email to