diff options
author | Zhipeng Lu <[email protected]> | 2024-01-29 17:10:17 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-01-31 15:53:25 -0800 |
commit | 5dee6d6923458e26966717f2a3eae7d09fc10bf6 (patch) | |
tree | e49ea1341bb3d770af69ea056742488ba22f979a /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | e028243003ad6e1417cc8ac19af9ded672b9ec59 (diff) |
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 <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions