net/tipc: fix missing destroy_workqueue() on error in tipc_crypto_start()
Subsystems (3)
PATCH 1/1 net/tipc: fix missing destroy_workqueue() on error in tipc_crypto_start()
Add the missing destroy_workqueue() before return from tipc_crypto_start() in the error handling case.
Fixes 1ef6f7c9390f ("tipc: add automatic session key exchange")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Yang Yingliang <[email protected]>
--- net/tipc/crypto.c | 2 ++ 1 file changed, 2 insertions(+)
net/tipc/crypto.c +2 -0
@@ -1492,6 +1492,8 @@ int tipc_crypto_start(struct tipc_crypto **crypto, struct net *net,/* Allocate statistic structure */ c->stats = alloc_percpu_gfp(struct tipc_crypto_stats, GFP_ATOMIC);if (!c->stats) { +if (c->wq) +destroy_workqueue (c->wq);kfree_sensitive (c);return -ENOMEM ; }
Signature · 1 line
2.25.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Wed, 31 Mar 2021 16:36:02 +0800 you wrote:
Add the missing
destroy_workqueue()before return fromtipc_crypto_start()in the error handling case.Fixes 1ef6f7c9390f ("tipc: add automatic session key exchange")Reported-by Hulk Robot <[email protected]>Signed-off-by Yang Yingliang <[email protected]>[...]
Here is the summary with links:
- [-next] net/tipc: fix missing destroy_workqueue() on error in tipc_crypto_start()
https://git.kernel.org/netdev/net-next/c/ac1db7acea67
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html