summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-04-03 21:52:52 +0200
committerKalle Valo <kvalo@codeaurora.org>2018-04-24 20:30:03 +0300
commit07073a2768ac8ef1360f715a68c3f7b7d1f23850 (patch)
tree9cc14425ce2ea79db3dbac5c89cd1febab710fb4 /drivers/net
parent80f28994f7d9c01e2af3d8584874cfc1904a7553 (diff)
mt76: fix potential sleep in atomic context
Use cancel_delayed_work instead of cancel_delayed_work_sync Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mediatek/mt76/agg-rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/agg-rx.c b/drivers/net/wireless/mediatek/mt76/agg-rx.c
index fcb208d1f276..cbac42cb536c 100644
--- a/drivers/net/wireless/mediatek/mt76/agg-rx.c
+++ b/drivers/net/wireless/mediatek/mt76/agg-rx.c
@@ -273,7 +273,7 @@ static void mt76_rx_aggr_shutdown(struct mt76_dev *dev, struct mt76_rx_tid *tid)
spin_unlock_bh(&tid->lock);
- cancel_delayed_work_sync(&tid->reorder_work);
+ cancel_delayed_work(&tid->reorder_work);
}
void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno)