be2net: fix a race in be_xmit()
authorEric Dumazet <edumazet@google.com>
Thu, 7 Jun 2012 22:59:59 +0000 (22:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jun 2012 21:44:19 +0000 (14:44 -0700)
commitcd8f76c0a0c6fce0b2cf23c9bd0123f91453f46d
tree407d86c633217baa0e1f5c5d6980009ad3b84abf
parent4399a4df98a63e30fd16e9d0cecc46ea92269e8f
be2net: fix a race in be_xmit()

As soon as hardware is notified of a transmit, we no longer can assume
skb can be dereferenced, as TX completion might have freed the packet.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c