mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 15:16:56 +07:00
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: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
c7f647d9bd
commit
b0b2373db7
@ -257,7 +257,7 @@ static void mt76_rx_aggr_shutdown(struct mt76_dev *dev, struct mt76_rx_tid *tid)
|
||||
u8 size = tid->size;
|
||||
int i;
|
||||
|
||||
cancel_delayed_work(&tid->reorder_work);
|
||||
cancel_delayed_work_sync(&tid->reorder_work);
|
||||
|
||||
spin_lock_bh(&tid->lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user