Commit fc62c094 authored by Yangbo Lu's avatar Yangbo Lu Committed by David S. Miller

net: mscc: ocelot: avoid incorrect consuming in skbs list

Break the matching loop when find the matching skb for TX timestamp.
This is to avoid consuming more skbs incorrectly. The timestamp ID
is from 0 to 3 while the FIFO could support 128 timestamps at most.
Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a95069ec
...@@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *ocelot) ...@@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *ocelot)
list_del(pos); list_del(pos);
kfree(entry); kfree(entry);
break;
} }
/* Next ts */ /* Next ts */
......
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