Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i7core_edac: fixed typo in error count calculation

Based on a patch from the PaX Team, found during a clang analysis pass.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: stable@kernel.org [v2.6.35+]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mathias Krause and committed by
Linus Torvalds
8cf2d239 338d0f0a

+1 -1
+1 -1
drivers/edac/i7core_edac.c
··· 1670 1670 char *type, *optype, *err, *msg; 1671 1671 unsigned long error = m->status & 0x1ff0000l; 1672 1672 u32 optypenum = (m->status >> 4) & 0x07; 1673 - u32 core_err_cnt = (m->status >> 38) && 0x7fff; 1673 + u32 core_err_cnt = (m->status >> 38) & 0x7fff; 1674 1674 u32 dimm = (m->misc >> 16) & 0x3; 1675 1675 u32 channel = (m->misc >> 18) & 0x3; 1676 1676 u32 syndrome = m->misc >> 32;