aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorLoc Ho <lho@apm.com>2014-05-08 19:03:16 -0400
committerBorislav Petkov <bp@suse.de>2014-05-09 03:35:04 -0400
commitaa2064d7dd35ac5812645780d2f22a7899e7c6e1 (patch)
tree402c65a352fd327423c718593dfe9b25f5263da5 /drivers/edac
parentc5c0903b2cda930c76d296419d290137294779f2 (diff)
EDAC: Fix MC scrub mode comparsion bug for correctable errors
The MC structure field scrub_mode is of integer type - not bit field. Use it accordingly. Signed-off-by: Loc Ho <lho@apm.com> Link: http://lkml.kernel.org/r/1399590199-12256-2-git-send-email-lho@apm.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 33edd6766344..2c694b5297cc 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -1018,7 +1018,7 @@ static void edac_ce_error(struct mem_ctl_info *mci,
1018 } 1018 }
1019 edac_inc_ce_error(mci, enable_per_layer_report, pos, error_count); 1019 edac_inc_ce_error(mci, enable_per_layer_report, pos, error_count);
1020 1020
1021 if (mci->scrub_mode & SCRUB_SW_SRC) { 1021 if (mci->scrub_mode == SCRUB_SW_SRC) {
1022 /* 1022 /*
1023 * Some memory controllers (called MCs below) can remap 1023 * Some memory controllers (called MCs below) can remap
1024 * memory so that it is still available at a different 1024 * memory so that it is still available at a different