From 0efbc5d1c2717a8c1a23e1368fa075abc3c5c2bb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 15 Sep 2019 18:43:59 +0200 Subject: [PATCH] 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 --- agg-rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agg-rx.c b/agg-rx.c index 8f3d36a1..2276fd4e 100644 --- a/agg-rx.c +++ b/agg-rx.c @@ -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);