Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753043AbcCGObB (ORCPT ); Mon, 7 Mar 2016 09:31:01 -0500 Received: from mga04.intel.com ([192.55.52.120]:30399 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752958AbcCGOav (ORCPT ); Mon, 7 Mar 2016 09:30:51 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,551,1449561600"; d="scan'208";a="918576784" From: Hubert Chrzaniuk To: hubert.chrzaniuk@intel.com, lukasz.anaczkowski@intel.com, mchehab@osg.samsung.com, dougthompson@xmission.com, bp@alien8.de, linux-edac@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] EDAC, sb_edac: Fixed logic error in sb_edac driver Date: Mon, 7 Mar 2016 15:30:45 +0100 Message-Id: <1457361045-26221-1-git-send-email-hubert.chrzaniuk@intel.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 832 Lines: 24 Patch corrects a typo introduced previously. As a result under some configurations dimms were not correctly recognized. Problem affects only Xeon Phi architecture. Signed-off-by: Hubert Chrzaniuk --- drivers/edac/sb_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index e438ee5..f5c6b97 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c @@ -1574,7 +1574,7 @@ static int knl_get_dimm_capacity(struct sbridge_pvt *pvt, u64 *mc_sizes) for (cha = 0; cha < KNL_MAX_CHAS; cha++) { if (knl_get_mc_route(target, mc_route_reg[cha]) == channel - && participants[channel]) { + && !participants[channel]) { participant_count++; participants[channel] = 1; break; -- 1.8.3.1