diff options
author | Jim Snow <jim.m.snow@intel.com> | 2014-11-18 14:51:08 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-02 12:06:51 -0200 |
commit | 50043e257cedb54af8e1545de38f1289d0a52bc4 (patch) | |
tree | e586035a6c3118023080634278787626c62f1911 /drivers/edac | |
parent | 009d0431c3914de64666bec0d350e54fdd59df6a (diff) | |
download | talos-op-linux-50043e257cedb54af8e1545de38f1289d0a52bc4.tar.gz talos-op-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.c | 2 |
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; |