]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb9479360f112157a59036d1979f6d7e770fb297
tree01af28da17669e38149d10a4a0292973b76d1ad9
parent9b0e5d52076ae4ea8d2e48c7d37425d8218f0d82
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