hp100: fix an skb->len race
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 19 Jun 2011 12:43:33 +0000 (12:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2011 23:28:02 +0000 (16:28 -0700)
As soon as skb is given to hardware and spinlock released, TX completion
can free skb under us. Therefore, we should update netdev stats before
spinlock release.

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

No differences found