From: Borislav Petkov Date: Wed, 4 Nov 2009 13:04:06 +0000 (+0100) Subject: amd64_edac: fix CECCs reporting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17adea01b9606e416ea5116a27d02d47fe7e6c8d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git amd64_edac: fix CECCs reporting Shift error type bits properly. Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 3ee539a3fbb4..a38831c82649 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2254,7 +2254,7 @@ static inline void __amd64_decode_bus_error(struct mem_ctl_info *mci, { u32 ec = ERROR_CODE(info->nbsl); u32 xec = EXT_ERROR_CODE(info->nbsl); - int ecc_type = info->nbsh & (0x3 << 13); + int ecc_type = (info->nbsh >> 13) & 0x3; /* Bail early out if this was an 'observed' error */ if (PP(ec) == K8_NBSL_PP_OBS)