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 965fe90e1c20245a19021ac48ec56731adecadf8..7ae3f2814200c9e7e9d5773e792de6905484a2ab 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;
 }