Commit d612a579 authored by Committed by David S. MillerBrowse files
bnxt_en: Fix crash in bnxt_free_tx_skbs() during tx timeout.
The ring index j is not wrapped properly at the end of the ring, causing it to reference pointers past the end of the ring. For proper loop termination and to access the ring properly, we need to increment j and mask it before referencing the ring entry. Signed-off-by: Michael Chan <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>