Skip to content

Commit

Permalink
fec: fix race in transmit time stamping.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Cochran authored and David S. Miller committed Jun 19, 2011
1 parent 4ff75b7 commit a0087a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a0087a3

Please sign in to comment.