fec: fix race in transmit time stamping.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 19 Jun 2011 03:31:40 +0000 (03:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2011 23:35:30 +0000 (16:35 -0700)
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec.c

index 965fe90..7ae3f28 100644 (file)
@@ -324,10 +324,10 @@ fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
 
        fep->cur_tx = bdp;
 
-       spin_unlock_irqrestore(&fep->hw_lock, flags);
-
        skb_tx_timestamp(skb);
 
+       spin_unlock_irqrestore(&fep->hw_lock, flags);
+
        return NETDEV_TX_OK;
 }