mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
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: 2108df3c4b ("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>
This commit is contained in:
parent
82d68c3244
commit
fe4d7280cf
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ int rsi_coex_attach(struct rsi_common *common)
|
|||
rsi_coex_scheduler_thread,
|
||||
"Coex-Tx-Thread")) {
|
||||
rsi_dbg(ERR_ZONE, "%s: Unable to init tx thrd\n", __func__);
|
||||
kfree(coex_cb);
|
||||
return -EINVAL;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue