wifi: rsi: Fix memory leak in rsi_coex_attach()
authorYuan Can <yuancan@huawei.com>
Mon, 5 Dec 2022 06:14:41 +0000 (06:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:05 +0000 (09:39 +0100)
commitb56e60b3b158a93bc713437e8e466f401ff8cc9f
treecd78e82d1aaa8cd5de29164d2dafa96dac86f3f6
parent3d30678a59afabec408f1f6f3c96fc2d9382e6dc
wifi: rsi: Fix memory leak in rsi_coex_attach()

[ Upstream commit 956fb851a6e19da5ab491e19c1bc323bb2c2cf6f ]

The coex_cb needs to be freed when rsi_create_kthread() failed in
rsi_coex_attach().

Fixes: 2108df3c4b18 ("rsi: add coex support")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221205061441.114632-1-yuancan@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/rsi/rsi_91x_coex.c