Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp447681ybt; Wed, 1 Jul 2020 02:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEgD66sbrpzSwBwixWTRgdcsNSgDrJZWdSFFjtl8Kc/b0SaGHAR9TvpQgY+VNVGT37Ymej X-Received: by 2002:a17:906:aac1:: with SMTP id kt1mr23239194ejb.408.1593595215237; Wed, 01 Jul 2020 02:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593595215; cv=none; d=google.com; s=arc-20160816; b=mprlHgIqZt749Vx6MmKMlq/auC8+8djdjH8T6U9B1dqs9q5zcGdtGsBSKDgjqrlphV LqBv6ru1jrNBT6VQ2DCw1dJpJJGiS3OW/A6NJtjbp23t6xnwzFv6nK4+gT3FJEyYU1+s igDt1KlnB8Oh+8A0FJtq+f89SpIjAGtr/jWoniwLaslOXOSiU3+dbHznDwsg9TSroQk4 3AvUwnMjoDexhbSq5EF1nJrsTjRKA4bBand1I+eED28UJMD2Oydlg6jN6x8a6VQZCrDF OZNBP7HDY2A1p2iTMMMFL2OS+FXRzHtZ6VfK4MSsRlX/F29P4Ci9puq0ZFc/HsL6vGbj Tk7w== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=bqcHSECCuFjAJ0+N7bRQR5XapJdQj0BT3JWMovwZDog=; b=qLA0YrxjF5s2Lyy3FGsROc35RSpWY/0kzRqJ6vozIk0WZ3BdyN2rq6rdyLcihaVZCi Sn2j5pdB489WrD6pVc52u7ADCdcl5xUxNA4TSkLxhHKHWhOvXIZsUvX7xs2/J9P/SO+G BbncDYTfRWtS6Zd4DxWhAyWdQ2J2kerNcnfhS4uenjvVB4gPBsMGCbpl5t8yIj073dvc nUANBVeLyRUTeGjJV84xEPP4Ch0fdw1Shwf72qFRrmsOk2X/SEG5FhEzDdGi+Jg4O5eA uzR/dPfExOQHD1cgqewMTKISbTwDGDlCB8PigvJRbD1M7PUCppaKIrqnF0iulyNQc7n3 4kBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si3399015eja.585.2020.07.01.02.19.51; Wed, 01 Jul 2020 02:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729158AbgGAJTm (ORCPT + 99 others); Wed, 1 Jul 2020 05:19:42 -0400 Received: from mail.loongson.cn ([114.242.206.163]:57150 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726715AbgGAJTl (ORCPT ); Wed, 1 Jul 2020 05:19:41 -0400 Received: from [10.130.0.52] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Axb+ggVfxe8p1NAA--.11813S3; Wed, 01 Jul 2020 17:19:29 +0800 (CST) Subject: Re: [PATCH v4 04/14] irqchip/davinci-aintc: Fix potential resource leaks To: Markus Elfring , Thomas Gleixner , Jason Cooper , Marc Zyngier References: <1593569786-11500-1-git-send-email-yangtiezhu@loongson.cn> <1593569786-11500-5-git-send-email-yangtiezhu@loongson.cn> <08cad331-0a17-586c-07a7-6e3843cb61a1@web.de> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org From: Tiezhu Yang Message-ID: <879ce976-042d-b8d7-676e-304e02e7c965@loongson.cn> Date: Wed, 1 Jul 2020 17:19:28 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <08cad331-0a17-586c-07a7-6e3843cb61a1@web.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9Axb+ggVfxe8p1NAA--.11813S3 X-Coremail-Antispam: 1UD129KBjvdXoWrGr1fuF1kZw1DGr15ZryUGFg_yoWxWrgEgF y2gry7Gw4DG345Ja4jgrWvyFsFg3y7u3WxJryxZa13K3y3XwnxJrWkGF9xZa47KFZ3ur4D CFZIvrWYy343ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbc8YjsxI4VWDJwAYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r4j6F4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487MxAI w28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr 4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxG rwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8Jw CI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY 6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUc9mRUUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2020 04:15 PM, Markus Elfring wrote: > … >> +++ b/drivers/irqchip/irq-davinci-aintc.c >> @@ -96,7 +96,7 @@ void __init davinci_aintc_init(const struct davinci_aintc_config *config) >> resource_size(&config->reg)); >> if (!davinci_aintc_base) { >> pr_err("%s: unable to ioremap register range\n", __func__); >> - return; >> + goto err_release; >> } > … > > Can it help to return any error codes? > Would you like to reconsider the function return type? No, the initial aim of this patch is just to fix the potential resource leaks, so I think maybe no need to consider the function return type now. > > Regards, > Markus