Skip to content

Commit

Permalink
amd64_edac: fix CECCs reporting
Browse files Browse the repository at this point in the history
Shift error type bits properly.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov committed Nov 4, 2009
1 parent a3c4c58 commit 17adea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/amd64_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 17adea0

Please sign in to comment.