Borislav Petkov bb31b3122c EDAC: Fix workqueue-related crashes
00740c58541b6087d78418cebca1fcb86dc6077d changed edac_core to
un-/register a workqueue item only if a lowlevel driver supplies a
polling routine. Normally, when we remove a polling low-level driver, we
go and cancel all the queued work. However, the workqueue unreg happens
based on the ->op_state setting, and edac_mc_del_mc() sets this to
OP_OFFLINE _before_ we cancel the work item, leading to NULL ptr oops on
the workqueue list.

Fix it by putting the unreg stuff in proper order.

Cc: <stable@kernel.org> #36.x
Reported-and-tested-by: Tobias Karnat <tobias.karnat@googlemail.com>
LKML-Reference: <1291201307.3029.21.camel@Tobias-Karnat>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
2010-12-08 19:52:27 +01:00
..
2010-11-30 09:18:01 +11:00
2010-12-08 19:52:27 +01:00
2010-11-24 11:19:05 -08:00
2010-12-02 14:51:15 -08:00
2010-12-02 14:51:15 -08:00
2010-11-16 13:33:23 -08:00
2010-11-22 15:12:04 -05:00
2010-12-04 11:18:25 -05:00
2010-11-12 07:55:30 -08:00
2010-11-23 22:26:23 +00:00
2010-11-25 11:29:16 +02:00