net/tipc: fix missing destroy_workqueue() on error in tipc_crypto_start()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 31 Mar 2021 08:36:02 +0000 (16:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:32 +0000 (09:50 +0200)
commitfaba97afdbb9d3ae4f4829603dc6513f0ad133b6
tree765b483e6866b69ee2c5c0b53952efac5303e162
parentfd26f3a07e7397bf2cb23a7792874c8767a18db3
net/tipc: fix missing destroy_workqueue() on error in tipc_crypto_start()

[ Upstream commit ac1db7acea67777be1ba86e36e058c479eab6508 ]

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 <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tipc/crypto.c