summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-30 16:16:46 +0100
committerDavid S. Miller <davem@davemloft.net>2020-06-30 13:38:47 -0700
commit5831b33362fdb60d56314a237b764e24ee1a538e (patch)
tree28adbb2dc388234dfaa35b3d773610473f05e012 /tools
parent6bad912b7e5ab51c23d8fa8362ca2d4ceeebdb74 (diff)
downloadlinux-5831b33362fdb60d56314a237b764e24ee1a538e.tar.bz2
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 'tools')
0 files changed, 0 insertions, 0 deletions