Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50043e25 authored by Jim Snow's avatar Jim Snow Committed by Mauro Carvalho Chehab
Browse files

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: default avatarJim Snow <jim.snow@intel.com>
Signed-off-by: default avatarLukasz Anaczkowski <lukasz.anaczkowski@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 009d0431
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;