]> git.baikalelectronics.ru Git - kernel.git/commitdiff
octeontx2-pf: cancel reset_task work
authorSubbaraya Sundeep <sbhatta@marvell.com>
Sat, 25 Jul 2020 04:43:53 +0000 (10:13 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:14:48 +0000 (17:14 -0700)
During driver exit cancel the queued
reset_task work in VF driver.

Fixes: aa6b663cc0f9 ("octeontx2-vf: Virtual function driver support")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c

index f4227517dc8e03b28753a50c5fdb19961b8624ba..c1c263d1ac2ece56846a45c53a30cb8fdc908519 100644 (file)
@@ -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);