aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netkit.c
diff options
context:
space:
mode:
authorHangbin Liu <[email protected]>2024-05-17 00:54:35 +0000
committerPaolo Abeni <[email protected]>2024-05-21 11:16:25 +0000
commitefb9f4f19f8e37fde43dfecebc80292d179f56c6 (patch)
tree786dd6ecfd7ff77864aa2b8b6b7e8f17d320f660 /drivers/net/netkit.c
parentaf_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock. (diff)
downloadkernel-efb9f4f19f8e37fde43dfecebc80292d179f56c6.tar.gz
kernel-efb9f4f19f8e37fde43dfecebc80292d179f56c6.zip
ipv6: sr: fix memleak in seg6_hmac_init_algo
seg6_hmac_init_algo returns without cleaning up the previous allocations if one fails, so it's going to leak all that memory and the crypto tfms. Update seg6_hmac_exit to only free the memory when allocated, so we can reuse the code directly. Fixes: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support") Reported-by: Sabrina Dubroca <[email protected]> Closes: https://lore.kernel.org/netdev/Zj3bh-gE7eT6V6aH@hog/ Signed-off-by: Hangbin Liu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Sabrina Dubroca <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions