Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/nfp: fix Rx descriptor DMA address
[ upstream commit 0c48f5a ] When receiving a packet that is larger than the mbuf size, the Rx function will break the receive loop and sent a free list descriptor with random DMA address. Fix this by moving the increment of the free list descriptor counter to after the packet size have been checked and acted on. Fixes: bb340f5 ("net/nfp: fix memory leak in Rx") Signed-off-by: Chaoyong He <chaoyong.he@corigine.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
- Loading branch information