]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fou: fix initialization of grc
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Fri, 6 Sep 2024 10:28:39 +0000 (15:28 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:09 +0000 (19:24 +0200)
commit7ae890ee19479eeeb87724cca8430b5cb3660c74
tree8119bb45c989a1ec94efbea0f935ad1248aa9dcd
parent65feee671e37f3b6eda0b6af28f204b5bcf7fa50
fou: fix initialization of grc

[ Upstream commit 4c8002277167125078e6b9b90137bdf443ebaa08 ]

The grc must be initialize first. There can be a condition where if
fou is NULL, goto out will be executed and grc would be used
uninitialized.

Fixes: 7e4196935069 ("fou: Fix null-ptr-deref in GRO.")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20240906102839.202798-1-usama.anjum@collabora.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/fou_core.c