Skip to content

Commit ece2371

Browse files
committed
net: Properly unlink GRO packets on overflow.
Just like with normal GRO processing, we have to initialize skb->next to NULL when we unlink overflow packets from the GRO hash lists. Fixes: d4546c2 ("net: Convert GRO SKB handling to list_head.") Reported-by: Oleksandr Natalenko <oleksandr@natalenko.name> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6788fac commit ece2371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5457,7 +5457,7 @@ static void gro_flush_oldest(struct list_head *head)
54575457
/* Do not adjust napi->gro_hash[].count, caller is adding a new
54585458
* SKB to the chain.
54595459
*/
5460-
list_del(&oldest->list);
5460+
skb_list_del_init(oldest);
54615461
napi_gro_complete(oldest);
54625462
}
54635463

0 commit comments

Comments
 (0)