On Wed, 14 Oct 2026 11:12:52 +0200
Sriram Yagnaraman <[email protected]> wrote:

> eth_memif_tx() reads bufs[0]->pool before any check on nb_pkts, to pick
> the mempool for its fast-path single-pool test. A caller that passes
> nb_pkts == 0 therefore dereferences bufs[0], which is out of bounds for
> an empty burst. Return early when there is nothing to transmit.
> 
> Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
> Cc: [email protected]
> 
> Signed-off-by: Sriram Yagnaraman <[email protected]>
> ---

Calling tx_burst with 0 packets is undefined. Ok to check but drivers
are not required.

Reply via email to