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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2021 09:17:24 +0000 (10:17 +0100)
commit1159e25c137422bdc48ee96e3fb014bd942092c6
tree01af28da17669e38149d10a4a0292973b76d1ad9
parentc7d102232649226a69dddd58a4942cf13cff4f7c
qede: fix crash in rmmod qede while automatic debug collection

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>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_main.c