Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4155117imm; Mon, 11 Jun 2018 07:52:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDiH30z7LgY14lTmbKyIyy1Ng78z/dz2TDJHgxRnvR5Dv0PbQ7sDH4+8GTHoDub38mlOH5 X-Received: by 2002:a17:902:7898:: with SMTP id q24-v6mr19014274pll.254.1528728764061; Mon, 11 Jun 2018 07:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528728764; cv=none; d=google.com; s=arc-20160816; b=WTXvwKRVex3Q0gTi4ggKYHFUWw4uMyNFwiKoi/DjdOLkRHXmWRBGSefhpePQSGbBqd oYlevVoGHqMieFlJLyAqYF27TsjWB6uR6XLDCF+YRHZu41jTKrfv7sNKAfvMiCEDmXOF wIZd3VBdNZFCAqxGoak8RSxJZCJJ+wGM59qCif9TJ9oDJsBImbmJQgwcsP/uMy4DxXVM xVQBFFv9bZqnMvBBlUoonbKd+Ya7E9DD2FZse8e1t/9pdM3/b5jY4KhpiMf7MhgCi0Go YFfk/QzfdyBFHtewJxDO6MbK8yzRuz4y9eT3DnunChcgKD3CUKtwaARuhLtD5YLZYGWT 4wgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to :arc-authentication-results; bh=bwrWzO5rAGUigPEecc26PqaAKfY0XlpadRdOtYTxmZk=; b=0XEE+7Zhc9YjeQGH1oVnXjWsIRP6m52AvOjdVSd3OpV6YWSQN53HWH36hpONOs76PL WzMnC9Vx5T4gJDlYqwqDCdGIwWIl+GDKV8ewBnmuCPNDW4hL6D5LVY9SNa1ohSwR5zVg BfToOnoDtSLzANGw4uDnLVnlmG82yjvGhn/yFzD4dsf99vY+mQ7iamXljJTIW40Kgrs1 1+q7EHliKbDc315HjhJEAEbzZ8y/ER6nman8EBwpAjZynjq0lz3xnstIp9tBMcTmqa7T 3bGwU6TwurGZk7wVQmMdwSPw1+Ne2xOnsvVcg4YJOLEYrowzSse7F9b2sZju7rEElQms /SJg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26-v6si24230766pff.278.2018.06.11.07.52.29; Mon, 11 Jun 2018 07:52:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932524AbeFKOvH (ORCPT + 99 others); Mon, 11 Jun 2018 10:51:07 -0400 Received: from mga03.intel.com ([134.134.136.65]:4985 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932395AbeFKOvG (ORCPT ); Mon, 11 Jun 2018 10:51:06 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2018 07:51:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,502,1520924400"; d="scan'208";a="231649869" Received: from tthayer-hp-z620-workstation.an.intel.com (HELO [10.122.105.144]) ([10.122.105.144]) by orsmga005.jf.intel.com with ESMTP; 11 Jun 2018 07:51:04 -0700 Reply-To: thor.thayer@linux.intel.com Subject: Re: [PATCH V2] EDAC, altera: Fix an error handling path in 'altr_s10_sdram_probe()' To: Christophe JAILLET , bp@alien8.de, mchehab@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20180610174532.22071-1-christophe.jaillet@wanadoo.fr> From: Thor Thayer Message-ID: <092ce90c-1f68-1041-4385-997dcb13bc22@linux.intel.com> Date: Mon, 11 Jun 2018 09:53:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180610174532.22071-1-christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/10/2018 12:45 PM, Christophe JAILLET wrote: > IF 'regmap_write()' fails, we should release some resources as done in all > the other error handling paths of the function. > > Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10") > Signed-off-by: Christophe JAILLET > --- > v1 -> v2: Fix subject line > --- > drivers/edac/altera_edac.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c > index d0d5c4dbe097..5762c3c383f2 100644 > --- a/drivers/edac/altera_edac.c > +++ b/drivers/edac/altera_edac.c > @@ -730,7 +730,8 @@ static int altr_s10_sdram_probe(struct platform_device *pdev) > S10_DDR0_IRQ_MASK)) { > edac_printk(KERN_ERR, EDAC_MC, > "Error clearing SDRAM ECC count\n"); > - return -ENODEV; > + ret = -ENODEV; > + goto err2; > } > > if (regmap_update_bits(drvdata->mc_vbase, priv->ecc_irq_en_offset, > Thanks. Reviewed-by: Thor Thayer