amd64_edac: fix forcing module load/unload
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 21 Dec 2009 17:55:18 +0000 (18:55 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 24 Dec 2009 10:07:08 +0000 (11:07 +0100)
Clear the override flag after force-loading the module.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c

index a8af27a748251e9356eb215269e9681d5359be32..63c04d31cd7ee52627bbd121e6ea57736fd8fa81 100644 (file)
@@ -2690,9 +2690,8 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt)
                        amd64_printk(KERN_WARNING, "%s", ecc_warning);
                        return -ENODEV;
                }
-       } else
-               /* CLEAR the override, since BIOS controlled it */
                ecc_enable_override = 0;
+       }
 
        return 0;
 }