summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorJim Snow <jim.m.snow@intel.com>2014-11-18 14:51:08 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-02 15:06:51 +0100
commit50043e257cedb54af8e1545de38f1289d0a52bc4 (patch)
treee586035a6c3118023080634278787626c62f1911 /drivers/edac
parentLinux 3.18-rc7 (diff)
downloadlinux-50043e257cedb54af8e1545de38f1289d0a52bc4.tar.xz
linux-50043e257cedb54af8e1545de38f1289d0a52bc4.zip
sb_edac: Fix off-by-one error in number of channels
This prevented edac sysfs code from properly handling 6 channels per memory controller. Signed-off-by: Jim Snow <jim.snow@intel.com> Signed-off-by: Lukasz Anaczkowski <lukasz.anaczkowski@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mc_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index a6cd36100663..670d2829c547 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -372,7 +372,7 @@ static int edac_create_csrow_object(struct mem_ctl_info *mci,
{
int err, chan;
- if (csrow->nr_channels >= EDAC_NR_CHANNELS)
+ if (csrow->nr_channels > EDAC_NR_CHANNELS)
return -ENODEV;
csrow->dev.type = &csrow_attr_type;