diff options
author | Michael Chan <mchan@broadcom.com> | 2012-07-10 12:04:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 08:33:47 +0200 |
commit | c1f5163de417dab01fa9daaf09a74bbb19303f3c (patch) | |
tree | 7606bdf368609cd6a2f8576f13346413b6365dc0 /net/batman-adv/bridge_loop_avoidance.h | |
parent | IPoIB: fix skb truesize underestimatiom (diff) | |
download | linux-c1f5163de417dab01fa9daaf09a74bbb19303f3c.tar.xz linux-c1f5163de417dab01fa9daaf09a74bbb19303f3c.zip |
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: Zongyun Lai <zlai@vmware.com>
Reviewed-by: Jeffrey Huang <huangjw@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.h')
0 files changed, 0 insertions, 0 deletions