Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/memif: fix segfault with Tx burst larger than 255
There will be a segfault when tx burst size is larger than 256. This is because eth_memif_tx uses an index i which is uint8_t to count transmitted nb_pkts. Extend i to uint16_t, the same size as nb_pkts. Fixes: b5613c8 ("net/memif: add a Tx fast path") Cc: [email protected] Reported-by: Liangxing Wang <[email protected]> Signed-off-by: Joyce Kong <[email protected]> Reviewed-by: Ruifeng Wang <[email protected]> Reviewed-by: Stephen Hemminger <[email protected]> Acked-by: Ferruh Yigit <[email protected]>
- Loading branch information