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>
This commit is contained in:
Jim Snow 2014-11-18 14:51:08 +01:00 committed by Mauro Carvalho Chehab
parent 009d0431c3
commit 50043e257c
1 changed files with 1 additions and 1 deletions

View File

@ -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;