Received: by 10.213.65.68 with SMTP id h4csp1620162imn; Mon, 19 Mar 2018 08:56:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkiTrldOHVPukjmgVuMNpQfAk5flciUc2KCY/snEIvu8l+LIDsQJsXuPjwiof7grNZE65w X-Received: by 10.99.107.1 with SMTP id g1mr9625909pgc.347.1521475012915; Mon, 19 Mar 2018 08:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521475012; cv=none; d=google.com; s=arc-20160816; b=r5M0sPy2p0dyDr0q/npwultEeyT7LJfI57BH7etxanxVskSYWu7ZFl9y6ogOwrWQo/ gQmXR6+tkdeFnwQP3OtyFaM2tMpQbB5hmCNXjxt/ULbOEmx1CZu+gIt6iSxpSj2l9z9k C+Mi82U06baaNtERU/gQTmP63DdqEy7SvNXBXtIIzPKjErLiD/h3yXUToGKPmVw3h1K0 K5rwqVavNrVyLXhe63918yUkP2lid2k3uWry4KcuNmJ+s8FM1t+JVLmftQwzVjzWpVn5 5JUtl/s5Oy49QIuMIHt3wJegQY8nwUzw4D+H5vgddhbi7/NXgKr+UAFH3ou5+ExWByoz ml+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=EEczb33mfFSDPDTJRW6bQ/2e8XgsmE1AXVCB/KH/Uug=; b=LznTLI5k6s84aiq+68S6TgayvdN47IAjoTnNglm57tNVoouL025zNUDxS0YdQSVljk Ds2W5+qJFZs0rawcKoliWRcR35h6GJyENTDMM+pztwo1M6CeeZg1mNGakAYFCoFq56Cn Ygq/1McWjqL5JUeASVROVu3aqS589GEg4c+wt+pENrdpd5wQaYZPHZ33sLAdnNrq6ov9 UYOaCirSP3P7r6Yy0yYl/NM9wVhny9H5noJG9618BnAEhwknZvfDYWdgUlb/sLM35SjS Q0P7djS3Zrourh3AJXncNoc3rc94uTBSVUSGgqEdFJZabHYbTAiafkacgUuMSOV7sO3N vMEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=FxsmjGR8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3-v6si216228plb.221.2018.03.19.08.56.38; Mon, 19 Mar 2018 08:56:52 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=FxsmjGR8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934067AbeCSPuO (ORCPT + 99 others); Mon, 19 Mar 2018 11:50:14 -0400 Received: from mail-sn1nam01on0118.outbound.protection.outlook.com ([104.47.32.118]:64697 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934025AbeCSPty (ORCPT ); Mon, 19 Mar 2018 11:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EEczb33mfFSDPDTJRW6bQ/2e8XgsmE1AXVCB/KH/Uug=; b=FxsmjGR8z5QRBx+IJAnooWtUjBcNWKEHw4DjwykajsrKDcbhffq0nAPdbZoP5XBKC8LSurEdWLWNs3V+/oDCTmjJEbuSU5XISUos8nnsOJJ21PAK7luXXgGp3T34X9XuJIpSzDEq259WwxxzHMvib3GnFR3x0KbV1j3RQPwIJ8M= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0981.namprd21.prod.outlook.com (52.132.133.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:49:39 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:49:39 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Christophe JAILLET , linux-edac , Borislav Petkov , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 096/124] EDAC, mv64x60: Fix an error handling path Thread-Topic: [PATCH AUTOSEL for 4.15 096/124] EDAC, mv64x60: Fix an error handling path Thread-Index: AQHTv5nEaMnouIXXr0K0laarnn1jvw== Date: Mon, 19 Mar 2018 15:48:47 +0000 Message-ID: <20180319154645.11350-96-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0981;7:pamRfOBkaoeaSOPq7bMIQBevU7/VOMsgnDTGa+ZNWZD4ojflZUxILVhhcTHxHz89Mz5iXeYpt/a6Z3tiWSmHMaKdFV4MA7xgqAu9nEMwPCvzKvd8j4KZ+/azQUeZhxQqVz3oXkn3g8FHna9vCDJvuMzZgvFneK5sxIPdEyOYAGGYbkqWSyXnCuPU+zNyTY8I0pZutNWUBM1WemV0dB0AlGvq9p3l+QQvz4TCGqXiEi6JsknfQuae/nk7jAWFlcW1;20:KQ32cavgpAddm1UIIJPrjynQIklSkLoEabMQWT6KyyuQqIjiJDu4wSZGg+XDnK4qnGKsK8hMf35zc48sAixVcKbc1osNzoVEJEe4Ig70lhpSGo58vJzq3tEwlnsImeKF4sZMoRm35fMt2Eg19Pb4DvR9WQw66VSlasVwb7PoTe8= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 59e9a1f9-cdc2-4444-fbae-08d58db1060f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0981; x-ms-traffictypediagnostic: DM5PR2101MB0981: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055)(155761271638844)(42068640409301); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0981;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0981; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(376002)(366004)(39860400002)(39380400002)(189003)(199004)(66066001)(6486002)(26005)(110136005)(5660300001)(54906003)(3280700002)(6306002)(6512007)(68736007)(102836004)(6436002)(107886003)(10290500003)(53936002)(186003)(966005)(59450400001)(72206003)(14454004)(36756003)(6666003)(2950100002)(316002)(6506007)(22452003)(478600001)(10090500001)(106356001)(105586002)(99286004)(7736002)(3660700001)(86362001)(76176011)(305945005)(86612001)(2501003)(97736004)(5250100002)(4326008)(3846002)(6116002)(1076002)(8936002)(25786009)(81156014)(81166006)(8676002)(2900100001)(2906002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0981;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: y1/sWmIl9hyTK013sqW/LjbkNLSXFa3TqoXbLcf0w7lByHQBZ6TnCi+jR3KYJREg0lkVVwDZFllpD7qUB+yvTwgR2MvluHfxpVUYu0XGSxGp+ZxbaD3grEqtUNBAmIm8KYf2sZV6fIuIQ/5bfrTWVtVtiBnl45ZHAIKsUsJzwo7AiR+83RwPoSqybsXcVufXmR3v1uJpHHcRQKUhQaeI7NMqckKhsre8cbhWNxKKx2zb7w2/mqaU9y3t1zINxhiuDRqT2tRb8gk+h0Slt2Go3zp7nKRlN00YgZYIUADpeaQdSMevIefvDhxlmUSYJ/wlf/0O6REdaQoAAKidZXQGmA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59e9a1f9-cdc2-4444-fbae-08d58db1060f X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:48:47.0256 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0981 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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@wa= nadoo.fr Signed-off-by: Borislav Petkov Signed-off-by: Sasha Levin --- drivers/edac/mv64x60_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c index ec5d695bbb72..3c68bb525d5d 100644 --- a/drivers/edac/mv64x60_edac.c +++ b/drivers/edac/mv64x60_edac.c @@ -758,7 +758,7 @@ static int mv64x60_mc_err_probe(struct platform_device = *pdev) /* Non-ECC RAM? */ printk(KERN_WARNING "%s: No ECC DIMMs discovered\n", __func__); res =3D -ENODEV; - goto err2; + goto err; } =20 edac_dbg(3, "init mci\n"); --=20 2.14.1