Skip to content
Snippets Groups Projects
Commit dddedfa3 authored by Martin Kaistra's avatar Martin Kaistra Committed by Sasha Levin
Browse files

wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work


[ Upstream commit 1213acb4 ]

The workqueue might still be running, when the driver is stopped. To
avoid a use-after-free, call cancel_work_sync() in rtl8xxxu_stop().

Fixes: e542e66b ("rtl8xxxu: add bluetooth co-existence support for single antenna")
Signed-off-by: default avatarMartin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240111163628.320697-2-martin.kaistra@linutronix.de


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b4bbf38c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment