diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2019-11-27 15:27:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-27 10:53:37 -0800 |
commit | fc62c0948986b7aa6b2871a450a4469e35c5f9bc (patch) | |
tree | d89b7949c6c4a1615d4387caa436e015b518f8d3 /drivers/net/ethernet | |
parent | a95069ecb7092d03b2ea1c39ee04514fe9627540 (diff) | |
download | lwn-fc62c0948986b7aa6b2871a450a4469e35c5f9bc.tar.gz lwn-fc62c0948986b7aa6b2871a450a4469e35c5f9bc.zip |
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: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index 0e96ffab3b05..6dc9de3454ba 100644 --- a/drivers/net/ethernet/mscc/ocelot.c +++ b/drivers/net/ethernet/mscc/ocelot.c @@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *ocelot) list_del(pos); kfree(entry); + break; } /* Next ts */ |