]> git.baikalelectronics.ru Git - kernel.git/commit
udp: initialize is_flist with 0 in udp_gro_receive
authorXin Long <lucien.xin@gmail.com>
Mon, 30 Mar 2020 15:31:45 +0000 (23:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 17:35:03 +0000 (10:35 -0700)
commitaeec8fff19d6c14406d4249b9a655a4770738e14
tree59ef2dbecd151c6d2dce99f79834de1315868ad6
parentab4ce796948f34f963dced48758feb3ca1aa244b
udp: initialize is_flist with 0 in udp_gro_receive

Without NAPI_GRO_CB(skb)->is_flist initialized, when the dev doesn't
support NETIF_F_GRO_FRAGLIST, is_flist can still be set and fraglist
will be used in udp_gro_receive().

So fix it by initializing is_flist with 0 in udp_gro_receive.

Fixes: 8adbd0e6dafc ("udp: Support UDP fraglist GRO/GSO.")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_offload.c