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:
parent
009d0431c3
commit
50043e257c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue