diff options
author | Mathias Krause <minipli@googlemail.com> | 2011-08-18 09:17:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-29 13:29:06 -0700 |
commit | 8ec7ad7a0073b11f924d131dc423c5221dd9bb8c (patch) | |
tree | d8a68b43d16ff07e4669d7ed28dad4ad9a3b16aa /drivers/edac | |
parent | f10df4139384fdede3be489dbfea077fc3c26ad9 (diff) | |
download | kernel_samsung_aries-8ec7ad7a0073b11f924d131dc423c5221dd9bb8c.zip kernel_samsung_aries-8ec7ad7a0073b11f924d131dc423c5221dd9bb8c.tar.gz kernel_samsung_aries-8ec7ad7a0073b11f924d131dc423c5221dd9bb8c.tar.bz2 |
i7core_edac: fixed typo in error count calculation
commit 8cf2d2399ab60842f55598bc1b00fd15503b9950 upstream.
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/i7core_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 04f1e7c..f6cf448 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c @@ -1670,7 +1670,7 @@ static void i7core_mce_output_error(struct mem_ctl_info *mci, char *type, *optype, *err, *msg; unsigned long error = m->status & 0x1ff0000l; u32 optypenum = (m->status >> 4) & 0x07; - u32 core_err_cnt = (m->status >> 38) && 0x7fff; + u32 core_err_cnt = (m->status >> 38) & 0x7fff; u32 dimm = (m->misc >> 16) & 0x3; u32 channel = (m->misc >> 18) & 0x3; u32 syndrome = m->misc >> 32; |