]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/edac/edac_mc.c
amd64_edac: Fix driver module removal
[net-next-2.6.git] / drivers / edac / edac_mc.c
index 3630308e7b811a66f398193eae71cc12f5d7383f..6b21e25f7a84cc99ad6ea710b788745992d1170f 100644 (file)
@@ -339,6 +339,9 @@ static void edac_mc_workq_teardown(struct mem_ctl_info *mci)
 {
        int status;
 
+       if (mci->op_state != OP_RUNNING_POLL)
+               return;
+
        status = cancel_delayed_work(&mci->work);
        if (status == 0) {
                debugf0("%s() not canceled, flush the queue\n",