qede: fix crash in rmmod qede while automatic debug collection
authorPrabhakar Kushwaha <pkushwaha@marvell.com>
Thu, 29 Jul 2021 11:43:06 +0000 (14:43 +0300)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:38 +0000 (08:35 -0400)
commit410d1ea4ff3a58985c67abacc398bee54b93c0d2
tree9e081dd688c8332cbd2e58df90e1de08ae31aeed
parent7525f2e4de0069983497a9d3eab1ca9813ae1b4b
qede: fix crash in rmmod qede while automatic debug collection

[ Upstream commit 1159e25c137422bdc48ee96e3fb014bd942092c6 ]

A crash has been observed if rmmod is done while automatic debug
collection in progress. It is due to a race  condition between
both of them.

To fix stop the sp_task during unload to avoid running qede_sp_task
even if they are schedule during removal process.

Signed-off-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_main.c