Skip to content

Commit fc62c09

Browse files
yangbolu1991davem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a95069e commit fc62c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mscc/ocelot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ void ocelot_get_txtstamp(struct ocelot *ocelot)
736736

737737
list_del(pos);
738738
kfree(entry);
739+
break;
739740
}
740741

741742
/* Next ts */

0 commit comments

Comments
 (0)