Skip to content

Commit c0376f4

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-pf: cancel reset_task work
During driver exit cancel the queued reset_task work in VF driver. Fixes: 3184fb5 ("octeontx2-vf: Virtual function driver support") Signed-off-by: Subbaraya Sundeep <[email protected]> Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 948a663 commit c0376f4

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+1
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ static void otx2vf_remove(struct pci_dev *pdev)
617617

618618
vf = netdev_priv(netdev);
619619

620+
cancel_work_sync(&vf->reset_task);
620621
otx2vf_disable_mbox_intr(vf);
621622

622623
otx2_detach_resources(&vf->mbox);

0 commit comments

Comments
 (0)