octeontx2-pf: Fix reset_task bugs
authorSubbaraya Sundeep <sbhatta@marvell.com>
Sat, 25 Jul 2020 04:43:52 +0000 (10:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:58:44 +0000 (09:58 +0200)
commit836abae2b652dfd4880483f73fc68f3ec3f4645f
tree63e9889f8dc779293f6820c06fc7582c9697af4f
parent0edbe2dd2987bb6c7929b01b8f764bc294d78970
octeontx2-pf: Fix reset_task bugs

[ Upstream commit 948a66338f44c16f52c0f03f6ad81a6f59eb5604 ]

Two bugs exist in the code related to reset_task
in PF driver one is the missing protection
against network stack ndo_open and ndo_close.
Other one is the missing cancel_work.
This patch fixes those problems.

Fixes: 4ff7d1488a84 ("octeontx2-pf: Error handling 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>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c