qlcnic: fix race in skb->len access.
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Thu, 14 Jul 2011 03:16:53 +0000 (03:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:49:44 +0000 (08:49 -0700)
commitf127f4727f3f60359570b6daa136ac1156e38fbf
tree068e73d445ce8b5fc798701a8e48b2d3b3973f5d
parente5dcf6dcde26ffdbd237dda4956bc6d7115dfae6
qlcnic: fix race in skb->len access.

As soon as skb is given to hardware, TX completion can free skb under us.
Therefore, we should update dev stats before kicking the device.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c