aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2009-11-04 14:04:06 +0100
committerBorislav Petkov <borislav.petkov@amd.com>2009-11-04 14:04:06 +0100
commit17adea01b9606e416ea5116a27d02d47fe7e6c8d (patch)
tree1839d638dba0691bb489bf39572c46eb3e0d6cd5 /drivers/edac
parentamd64_edac: fix a wrong goto clause in amd64_edac.c (diff)
downloadlinux-dev-17adea01b9606e416ea5116a27d02d47fe7e6c8d.tar.xz
linux-dev-17adea01b9606e416ea5116a27d02d47fe7e6c8d.zip
amd64_edac: fix CECCs reporting
Shift error type bits properly. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/amd64_edac.c2
1 files changed, 1 insertions, 1 deletions
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)