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)
committerKalle Valo <kvalo@kernel.org>
Wed, 14 Dec 2022 12:19:41 +0000 (14:19 +0200)
commit956fb851a6e19da5ab491e19c1bc323bb2c2cf6f
treea95818da60a714314c1531660ca5e8165ed37f53
parentd1c722867f8022a27182b9a1d84e9bca75486c9a
wifi: rsi: Fix memory leak in rsi_coex_attach()

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
drivers/net/wireless/rsi/rsi_91x_coex.c