Received: by 10.192.165.156 with SMTP id m28csp44517imm; Tue, 10 Apr 2018 16:03:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48iUty8pVtvsFUaI97MQTY4PCbk1pLh4WtrErllxR2pE3GtR/BLFm+2bzFyTCAe/DoHqC3u X-Received: by 10.98.220.86 with SMTP id t83mr1929569pfg.60.1523401389860; Tue, 10 Apr 2018 16:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401389; cv=none; d=google.com; s=arc-20160816; b=Z2Zr5dv/1EFqCFCv+m/8PFhXRwJmBXHOKBhKhEX9JDj8bKU17BFLVyVeXCVash9Sw+ AzUtTFOFrQgzjHb8xq7eo/9dr0/w6KPTfjCjJhVGddWR987Tpu6U0GytcR8he5Ys5+++ VamwHdkfgkRsroc8rqOy5piJvZws/GagKdt2a1RexCKnIP+gB1JI1mStri5ybAbsVfYI A/aToWP4COCkWqvejY34yQ8mAfc6OBodei829jFABiacbNL5Qu60QE76awb+gqlFq7Yq Bb/CQ1saMYL/eZX6Tvzyp2zvADTOOClhpAGu+x7u/FYiX4r0MAuqagXF0RcFB7oPXagy E7dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qFuU25A9yZRtixQTeCoR0qPBFemykALT0r5Zw5wb47I=; b=yfIncYN0CQg+RaahCmLmnueB9EHwGFuOJoPPUotxfIBbBZrCB/w7euozNLWVJBCI75 52cF3MspgwlryyAoL83IRdYJ8a9ZK8IUFumjJJPRg18+06Uqv3hjeHnOIn89E+hjgBV8 qAYAb0yjfQ2MUwJonVBslnN/Iag+H8L7fKMyazQcJNm+CtbfWHPzP13/g3fXPvmQwEvQ 440AFpQIau7Um9EoIr8Nvu1EVzD6HYK4iFAdS2SnCSK31T28RwLABORQmElbV87S9EtK xusfzaf3Josvf84GnUiGJ4pjxEgcgdweFjkxwEg3OccupsXSydmG5y8KdIeeP+1Gb6Ii WMrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si2813261pfb.42.2018.04.10.16.02.32; Tue, 10 Apr 2018 16:03:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756399AbeDJW5Q (ORCPT + 99 others); Tue, 10 Apr 2018 18:57:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43234 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755654AbeDJWgm (ORCPT ); Tue, 10 Apr 2018 18:36:42 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8A6B4E09; Tue, 10 Apr 2018 22:36:34 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , linux-edac , Borislav Petkov , Sasha Levin Subject: [PATCH 4.14 066/138] EDAC, mv64x60: Fix an error handling path Date: Wed, 11 Apr 2018 00:24:16 +0200 Message-Id: <20180410212909.762307985@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christophe JAILLET [ Upstream commit 68fa24f9121c04ef146b5158f538c8b32f285be5 ] We should not call edac_mc_del_mc() if a corresponding call to edac_mc_add_mc() has not been performed yet. So here, we should go to err instead of err2 to branch at the right place of the error handling path. Signed-off-by: Christophe JAILLET Cc: linux-edac Link: http://lkml.kernel.org/r/20180107205400.14068-1-christophe.jaillet@wanadoo.fr Signed-off-by: Borislav Petkov Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/edac/mv64x60_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/mv64x60_edac.c +++ b/drivers/edac/mv64x60_edac.c @@ -758,7 +758,7 @@ static int mv64x60_mc_err_probe(struct p /* Non-ECC RAM? */ printk(KERN_WARNING "%s: No ECC DIMMs discovered\n", __func__); res = -ENODEV; - goto err2; + goto err; } edac_dbg(3, "init mci\n");