diff options
author | Subbaraya Sundeep <sbhatta@marvell.com> | 2020-07-25 10:13:53 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-05 09:58:44 +0200 |
commit | 5e58cb2408ffc34841e4bca58e4409642256c590 (patch) | |
tree | 6787df0c6418b3673f0db28d4ff7ec2c51115a58 | |
parent | 836abae2b652dfd4880483f73fc68f3ec3f4645f (diff) | |
download | linux-stable-5e58cb2408ffc34841e4bca58e4409642256c590.tar.gz linux-stable-5e58cb2408ffc34841e4bca58e4409642256c590.tar.bz2 linux-stable-5e58cb2408ffc34841e4bca58e4409642256c590.zip |
octeontx2-pf: cancel reset_task work
[ Upstream commit c0376f473c5cc2ef94f8e1e055d173293cc3698c ]
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 <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |