diff options
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index 102674346035..592af5f0cf39 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c | |||
@@ -437,6 +437,9 @@ void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev) | |||
437 | { | 437 | { |
438 | int status; | 438 | int status; |
439 | 439 | ||
440 | if (!edac_dev->edac_check) | ||
441 | return; | ||
442 | |||
440 | status = cancel_delayed_work(&edac_dev->work); | 443 | status = cancel_delayed_work(&edac_dev->work); |
441 | if (status == 0) { | 444 | if (status == 0) { |
442 | /* workq instance might be running, wait for it */ | 445 | /* workq instance might be running, wait for it */ |