diff options
author | 2024-01-29 17:10:17 +0800 | |
---|---|---|
committer | 2024-01-31 15:53:25 -0800 | |
commit | 5dee6d6923458e26966717f2a3eae7d09fc10bf6 (patch) | |
tree | e49ea1341bb3d770af69ea056742488ba22f979a /net/unix/af_unix.c | |
parent | MAINTAINERS: Drop unreachable reviewer for Qualcomm ETHQOS ethernet driver (diff) | |
download | wireguard-linux-5dee6d6923458e26966717f2a3eae7d09fc10bf6.tar.xz wireguard-linux-5dee6d6923458e26966717f2a3eae7d09fc10bf6.zip |
net: ipv4: fix a memleak in ip_setup_cork
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions