Borislav Petkov 0966760619 EDAC: Balance workqueue setup and teardown
We use the ->edac_check function pointers to determine whether we need
to setup a polling workqueue. However, the destroy path is not balanced
and we might try to teardown an unitialized workqueue.

Balance init and destroy paths by looking at ->edac_check in both cases.
Set op_state to OP_OFFLINE *before* destroying anything.

Reported-by: Zhiqiang Hou <Zhiqiang.Hou@freescale.com>
Cc: Varun Sethi <Varun.Sethi@freescale.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
2016-02-02 11:04:29 +01:00
..
2011-04-19 00:23:22 +02:00
2014-02-25 10:01:30 +01:00
2015-12-11 16:56:43 +01:00
2015-12-11 16:56:43 +01:00
2015-12-11 16:56:43 +01:00
2014-03-11 06:55:49 -03:00
2015-12-11 16:56:43 +01:00
2015-08-13 10:12:52 +02:00
2011-04-19 00:23:22 +02:00
2015-12-11 16:56:43 +01:00