net:cxgb3: fix incorrect work cancellation
authorÍñigo Huguet <ihuguet@redhat.com>
Fri, 4 Jun 2021 11:36:33 +0000 (13:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:46:17 +0000 (14:46 -0700)
In my last changes in commit 5e0b8928927f I introduced a copy-paste bug,
leading to cancel twice qresume_task work for OFLD queue, and never the
one for CTRL queue. This patch cancels correctly both works.

Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/sge.c

index 115c03b..cb5c79c 100644 (file)
@@ -3310,7 +3310,7 @@ void t3_sge_stop(struct adapter *adap)
                struct sge_qset *qs = &adap->sge.qs[i];
 
                cancel_work_sync(&qs->txq[TXQ_OFLD].qresume_task);
-               cancel_work_sync(&qs->txq[TXQ_OFLD].qresume_task);
+               cancel_work_sync(&qs->txq[TXQ_CTRL].qresume_task);
        }
 }