]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Apr 2020 07:11:04 +0000 (09:11 +0200)
commitc0ff187f26f3b890b4c63c4b399e716deeff8969
treec81d60dc24364aad01e6a4e0d761f7334b8923fa
parentcf16912ae93e615ae17f69e0ff36ed93990c467d
udp: initialize is_flist with 0 in udp_gro_receive

[ Upstream commit bde1b56f898ca8112912d7b36e55e1543b3be0cf ]

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: 9fd1ff5d2ac7 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/udp_offload.c