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)
commit658924dc9ae2ca8e3c46f36306f5dbd501cf4688
treea10de7dfe5bd02f963455559868d4574cb08724c
parent00ce2d5614a67521241d024c6e50afe3bd3df049
hp100: fix an skb->len race

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>
drivers/net/hp100.c