]> git.karo-electronics.de Git - karo-tx-linux.git/commit
be2net: fix a race in be_xmit()
authorEric Dumazet <edumazet@google.com>
Thu, 7 Jun 2012 22:59:59 +0000 (22:59 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Jul 2012 03:32:13 +0000 (04:32 +0100)
commit14be92503e6e67bce5c2c8259036b88f66cafc46
tree438545c91d61a785804e907aa266d3aca2cf91d5
parent2d3de9b3abd0b5ad7a2641a092e804f922cef31d
be2net: fix a race in be_xmit()

[ Upstream commit cd8f76c0a0c6fce0b2cf23c9bd0123f91453f46d ]

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/emulex/benet/be_main.c