Received: by 10.192.165.156 with SMTP id m28csp66229imm; Tue, 10 Apr 2018 16:32:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx495rZpH32W2fRkFej31pShFx2TD3IDd49+6XqzWfP+8iAPr0nayXMRQfp2IzSvyp5aCqbBn X-Received: by 10.101.89.5 with SMTP id f5mr1673866pgu.428.1523403145515; Tue, 10 Apr 2018 16:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403145; cv=none; d=google.com; s=arc-20160816; b=o0aGF7NWu9MfVNtJfyLaGWCHiIAKszk99E9BivWhdCuIK7UZEiPXfb/wF74ucnZ20O 4TIb8O10XFZZTG9anaWLYRa7ylqXtFveWxTOfag12/rwDAt0UiLEWWDDZb51/Kq3gEAS UYfZWzd9jjIYaot94oU5zlaVa5cn/bJXTUm8gIyEeGBxNSmCk6ukwVWNbDF9h7fwmCZx bxZ11GJBMdYmnkYO5YCjQauE6/AF7Sr/aNMOxOWCQsjyuNePJ4+QD9VDICTo7/xlnKJz pcm6VLGIfdhhAewBrek3q1DMnRHKcpaUrX0GY0LRiBxAKNeBf/6sq4FUNAkvSWzDH88G 8cgQ== 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=GPV9gNGXYoYQt682c9qExkSZIqGzn8tootpIHD5bn/o=; b=mhxLpq50c++RO32aBZyWUuKA9p3yrqpOzGiQ0k1cZPGpXRUYRitqvWtnr8JQ0bEAE2 5dfg18yud+1gMkOzoDqyqEvoiB60r/voAygvH8AYLJZNUE8XgNlbXCy82YXVv09oGRn4 jjdRy9WI+Q9q54uK1m1I0wPmjx8vixydBoRq7N8pMVOZi9o+5V48cU90ojYh+5789Ttr GJ3TnQtMQbRGAQ8EwmCTukJN617RLdGIyXJyZ9ybkiqF/2T4n/mj5ZyYJZx+Nj0B0HTk 1YUw+Hh5HEuQdd95mj2tIzq5OXHZ4t1OlExRpl5RlJy0t49qHrhT58wCmOGlOYlftgCF 668A== 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 n10si2795965pfe.57.2018.04.10.16.31.48; Tue, 10 Apr 2018 16:32:25 -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 S1754356AbeDJW3k (ORCPT + 99 others); Tue, 10 Apr 2018 18:29:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39644 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335AbeDJW3h (ORCPT ); Tue, 10 Apr 2018 18:29:37 -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 5A557D4F; Tue, 10 Apr 2018 22:29:36 +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.15 085/168] EDAC, mv64x60: Fix an error handling path Date: Wed, 11 Apr 2018 00:23:47 +0200 Message-Id: <20180410212803.880324905@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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.15-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");