]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:37 +0000 (08:47 -0700)
commit9e7d7c544c8a3ec827f72d9af9c2c3efa45e5325
treeab4ae2ccc71d38014aee87f630295dacaad370a3
parent527a2a53232256fbaab9e72637839381eb6f42b1
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/benet/be_main.c