projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7899a9
)
wifi: libertas: add missing calls to cancel_work_sync()
author
Dmitry Antipov
<dmantipov@yandex.ru>
Tue, 25 Jul 2023 06:04:43 +0000
(09:04 +0300)
committer
Kalle Valo
<kvalo@kernel.org>
Tue, 1 Aug 2023 14:49:00 +0000
(17:49 +0300)
Add missing 'cancel_work_sync()' in 'if_sdio_remove()'
and on error handling path in 'if_sdio_probe()'.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Tested-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20230725060531.72968-1-dmantipov@yandex.ru
drivers/net/wireless/marvell/libertas/if_sdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/libertas/if_sdio.c
b/drivers/net/wireless/marvell/libertas/if_sdio.c
index
a63c5e6
..
a35b33e
100644
(file)
--- a/
drivers/net/wireless/marvell/libertas/if_sdio.c
+++ b/
drivers/net/wireless/marvell/libertas/if_sdio.c
@@
-1233,6
+1233,7
@@
err_activate_card:
flush_workqueue(card->workqueue);
lbs_remove_card(priv);
free:
+ cancel_work_sync(&card->packet_worker);
destroy_workqueue(card->workqueue);
err_queue:
while (card->packets) {
@@
-1277,6
+1278,7
@@
static void if_sdio_remove(struct sdio_func *func)
lbs_stop_card(card->priv);
lbs_remove_card(card->priv);
+ cancel_work_sync(&card->packet_worker);
destroy_workqueue(card->workqueue);
while (card->packets) {