From: Yangbo Lu Date: Wed, 27 Nov 2019 07:27:56 +0000 (+0800) Subject: net: mscc: ocelot: avoid incorrect consuming in skbs list X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fc62c0948986b7aa6b2871a450a4469e35c5f9bc;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index 0e96ffab3b05d..6dc9de3454ba7 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 */