summaryrefslogtreecommitdiff
path: root/drivers/dma-buf
diff options
context:
space:
mode:
authorZhipeng Lu <alexious@zju.edu.cn>2024-01-29 12:10:17 +0300
committerJakub Kicinski <kuba@kernel.org>2024-02-01 02:53:25 +0300
commit5dee6d6923458e26966717f2a3eae7d09fc10bf6 (patch)
treee49ea1341bb3d770af69ea056742488ba22f979a /drivers/dma-buf
parente028243003ad6e1417cc8ac19af9ded672b9ec59 (diff)
downloadlinux-5dee6d6923458e26966717f2a3eae7d09fc10bf6.tar.xz
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 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions