Commit 5bd07e8e authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

kernel/wr-nic: trivial: fix a possible issue once every 64k timestamps

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 425fe06d
......@@ -188,7 +188,7 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
desc = __wrn_alloc_tx_desc(wrn);
id = (wrn->id++) & 0xffff;
if (id == 0) /* 0 cannot be used in the SPEC; irrelevant in WRS */
id = wrn->id++;
id = (wrn->id++) & 0xffff;
spin_unlock_irqrestore(&wrn->lock, flags);
if (desc < 0) /* error */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment