From: Subbaraya Sundeep Date: Sat, 25 Jul 2020 04:43:53 +0000 (+0530) Subject: octeontx2-pf: cancel reset_task work X-Git-Tag: iomap-folio-5.17-old~3587^2~25^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c0376f473c5cc2ef94f8e1e055d173293cc3698c;p=users%2Fwilly%2Flinux.git octeontx2-pf: cancel reset_task work During driver exit cancel the queued reset_task work in VF driver. Fixes: 3184fb5ba96e ("octeontx2-vf: Virtual function driver support") Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c index f4227517dc8e..c1c263d1ac2e 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c @@ -617,6 +617,7 @@ static void otx2vf_remove(struct pci_dev *pdev) vf = netdev_priv(netdev); + cancel_work_sync(&vf->reset_task); otx2vf_disable_mbox_intr(vf); otx2_detach_resources(&vf->mbox);