summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanouil Maroudas <emmanouil.maroudas@gmail.com>2016-04-23 18:33:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-07 08:30:00 +0200
commitea4e60bc9cf5898e0fc2c79938521d2a7ea633bb (patch)
tree222de3f19004ad9fe22a029de5fd3570506f5734
parentf857dfa14d18cfa5e42aa657afad48df30c4dc2d (diff)
downloadlinux-stable-ea4e60bc9cf5898e0fc2c79938521d2a7ea633bb.tar.gz
linux-stable-ea4e60bc9cf5898e0fc2c79938521d2a7ea633bb.tar.bz2
linux-stable-ea4e60bc9cf5898e0fc2c79938521d2a7ea633bb.zip
EDAC: Increment correct counter in edac_inc_ue_error()
commit 993f88f1cc7f0879047ff353e824e5cc8f10adfc upstream. Fix typo in edac_inc_ue_error() to increment ue_noinfo_count instead of ce_noinfo_count. Signed-off-by: Emmanouil Maroudas <emmanouil.maroudas@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Fixes: 4275be635597 ("edac: Change internal representation to work with layers") Link: http://lkml.kernel.org/r/1461425580-5898-1-git-send-email-emmanouil.maroudas@gmail.com Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/edac/edac_mc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 19dc0bc9b136..9530c5703bb7 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -962,7 +962,7 @@ static void edac_inc_ue_error(struct mem_ctl_info *mci,
mci->ue_mc += count;
if (!enable_per_layer_report) {
- mci->ce_noinfo_count += count;
+ mci->ue_noinfo_count += count;
return;
}