irda: fix a race in irlan_eth_xmit()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 18 Aug 2010 00:24:43 +0000 (00:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:41:52 +0000 (00:41 -0700)
commit79c5f51c639021f7472591239c3867cee4b9ec02
treed7aeb85577fdb66ab2f4682778e135f263cadb6a
parent9c38657cfcb739b7dc4ce9065a85b4f0c195bef8
irda: fix a race in irlan_eth_xmit()

After skb is queued, its illegal to dereference it.

Cache skb->len into a temporary variable.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irlan/irlan_eth.c