UPSTREAM: net/tls: fix the IV leaks
[ Upstream commit 5a03bc73abed6ae196c15e9950afde19d48be12c ]
Commit f66de3ee2c16 ("net/tls: Split conf to rx + tx") made
freeing of IV and record sequence number conditional to SW
path only, but commit e8f69799810c ("net/tls: Add generic NIC
offload infrastructure") also allocates that state for the
device offload configuration. Remember to free it.
Fixes: e8f69799810c ("net/tls: Add generic NIC offload infrastructure")
Change-Id: I29545344e0f4ad78edd60924872fd8bfabfa83f3
Signed-off-by:
Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by:
Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by:
Simon Horman <simon.horman@netronome.com>
Signed-off-by:
David S. Miller <davem@davemloft.net>
Signed-off-by:
Sasha Levin <alexander.levin@microsoft.com>
Loading
Please register or sign in to comment