mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
wifi: mt76: mt7921: fix deadlock in mt7921_abort_roc
When mt7921_abort_roc is called with dev->mutex held, it can deadlock while calling cancel_work_sync(&phy->roc_work), because the work function could be waiting to acquire the mutex. Fix this by flushing the work before taking the mutex Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> Fixes:034ae28b56("wifi: mt76: mt7921: introduce remain_on_channel support") Fixes:41ac53c899("wifi: mt76: mt7921: introduce chanctx support") Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
8065c0e13f
commit
de19b9c836
1 changed files with 7 additions and 15 deletions
Loading…
Add table
Add a link
Reference in a new issue