diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-06-30 18:16:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 23:38:47 +0300 |
commit | 5831b33362fdb60d56314a237b764e24ee1a538e (patch) | |
tree | 28adbb2dc388234dfaa35b3d773610473f05e012 /net/ipv4/tcp_input.c | |
parent | 6bad912b7e5ab51c23d8fa8362ca2d4ceeebdb74 (diff) | |
download | linux-5831b33362fdb60d56314a237b764e24ee1a538e.tar.xz |
net/mlx5e: fix memory leak of tls
The error return path when create_singlethread_workqueue fails currently
does not kfree tls and leads to a memory leak. Fix this by kfree'ing
tls before returning -ENOMEM.
Addresses-Coverity: ("Resource leak")
Fixes: 1182f3659357 ("net/mlx5e: kTLS, Add kTLS RX HW offload support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions