Skip to content
Commit c1f5163d authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

bnx2: Fix bug in bnx2_free_tx_skbs().



In rare cases, bnx2x_free_tx_skbs() can unmap the wrong DMA address
when it gets to the last entry of the tx ring.  We were not using
the proper macro to skip the last entry when advancing the tx index.

Reported-by: default avatarZongyun Lai <zlai@vmware.com>
Reviewed-by: default avatarJeffrey Huang <huangjw@broadcom.com>
Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b28ba726
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment