forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/net/ipv4/igmp.c
....@@ -353,8 +353,9 @@
353353 struct flowi4 fl4;
354354 int hlen = LL_RESERVED_SPACE(dev);
355355 int tlen = dev->needed_tailroom;
356
- unsigned int size = mtu;
356
+ unsigned int size;
357357
358
+ size = min(mtu, IP_MAX_MTU);
358359 while (1) {
359360 skb = alloc_skb(size + hlen + tlen,
360361 GFP_ATOMIC | __GFP_NOWARN);