Commit b0b2373d authored by Felix Fietkau's avatar Felix Fietkau

mt76: use cancel_delayed_work_sync in mt76_rx_aggr_shutdown

The workqueue item needs to be fully shut down before the struct can be
freed.
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent c7f647d9
...@@ -257,7 +257,7 @@ static void mt76_rx_aggr_shutdown(struct mt76_dev *dev, struct mt76_rx_tid *tid) ...@@ -257,7 +257,7 @@ static void mt76_rx_aggr_shutdown(struct mt76_dev *dev, struct mt76_rx_tid *tid)
u8 size = tid->size; u8 size = tid->size;
int i; int i;
cancel_delayed_work(&tid->reorder_work); cancel_delayed_work_sync(&tid->reorder_work);
spin_lock_bh(&tid->lock); spin_lock_bh(&tid->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment