mt76: use cancel_delayed_work_sync in mt76_rx_aggr_shutdown
authorFelix Fietkau <nbd@nbd.name>
Sun, 15 Sep 2019 16:43:59 +0000 (18:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Nov 2019 12:23:47 +0000 (13:23 +0100)
The workqueue item needs to be fully shut down before the struct can be
freed.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/agg-rx.c

index 8f3d36a..2276fd4 100644 (file)
@@ -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);