mirror of https://gitee.com/openkylin/linux.git
fec: fix race in transmit time stamping.
Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4ff75b7cf3
commit
a0087a3619
|
@ -324,10 +324,10 @@ fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||||
|
|
||||||
fep->cur_tx = bdp;
|
fep->cur_tx = bdp;
|
||||||
|
|
||||||
spin_unlock_irqrestore(&fep->hw_lock, flags);
|
|
||||||
|
|
||||||
skb_tx_timestamp(skb);
|
skb_tx_timestamp(skb);
|
||||||
|
|
||||||
|
spin_unlock_irqrestore(&fep->hw_lock, flags);
|
||||||
|
|
||||||
return NETDEV_TX_OK;
|
return NETDEV_TX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue