diff options
author | Yu Liao <[email protected]> | 2022-11-10 17:03:29 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-11-11 20:08:17 -0800 |
commit | 0834ced65a6a1eaa10d0b319b685879a671b29aa (patch) | |
tree | 42766de05e1011f2e5edfa6aeec941bc69e3c628 /tools/perf/scripts/python/stackcollapse.py | |
parent | 77711683a50477de39757d67ab1a3638220d6860 (diff) |
net/tls: Fix memory leak in tls_enc_skb() and tls_sw_fallback_init()
'aead_req' and 'aead_send' is allocated but not freed in default switch
case. This commit fixes the potential memory leak by freeing them under
the situation.
Note that the default cases here should never be reached as they'd
mean we allowed offloading an unsupported algorithm.
Fixes: ea7a9d88ba21 ("net/tls: Use cipher sizes structs")
Signed-off-by: Yu Liao <[email protected]>
Reviewed-by: Gal Pressman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions