summaryrefslogtreecommitdiff
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorJim Snow <jim.m.snow@intel.com>2014-11-18 16:51:08 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-02 17:06:51 +0300
commit50043e257cedb54af8e1545de38f1289d0a52bc4 (patch)
treee586035a6c3118023080634278787626c62f1911 /drivers/edac/edac_mc_sysfs.c
parent009d0431c3914de64666bec0d350e54fdd59df6a (diff)
downloadlinux-50043e257cedb54af8e1545de38f1289d0a52bc4.tar.xz
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/edac_mc_sysfs.c')
-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;