net: thunderx: Wait for delayed work to finish before destroying it
[deliverable/linux.git] / drivers / net / ethernet / cavium / thunder / thunder_bgx.c
index 2574a7ea1c0e5c07dfb01bc7a3cbd00c1b16328a..6534b73620911728edb120fbd8129864250f2684 100644 (file)
@@ -695,8 +695,7 @@ static void bgx_lmac_disable(struct bgx *bgx, u8 lmacid)
        lmac = &bgx->lmac[lmacid];
        if (lmac->check_link) {
                /* Destroy work queue */
-               cancel_delayed_work(&lmac->dwork);
-               flush_workqueue(lmac->check_link);
+               cancel_delayed_work_sync(&lmac->dwork);
                destroy_workqueue(lmac->check_link);
        }
 
This page took 0.024445 seconds and 5 git commands to generate.