Home
last modified time | relevance | path

Searched hist:"8160 eb9a010200619a5c6970a596636173802904" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ipv4/
H A Dip_output.cdiff 8160eb9a010200619a5c6970a596636173802904 Mon Jan 29 03:10:17 CST 2024 Zhipeng Lu <alexious@zju.edu.cn> net: ipv4: fix a memleak in ip_setup_cork

[ Upstream commit 5dee6d6923458e26966717f2a3eae7d09fc10bf6 ]

When inetdev_valid_mtu fails, cork->opt should be freed if it is
allocated in ip_setup_cork. Otherwise there could be a memleak.

Fixes: 501a90c94510 ("inet: protect against too small mtu values.")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240129091017.2938835-1-alexious@zju.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>