Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1015710pxb; Wed, 6 Apr 2022 06:47:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhW5+BXZSLy2tEsB9dcXyh84/h5b+fERNYVw5P0NuYnwnvvT5CrMms366Km0FdT1Xkc0gZ X-Received: by 2002:a62:1715:0:b0:4fa:7a4f:e64c with SMTP id 21-20020a621715000000b004fa7a4fe64cmr9032593pfx.32.1649252835376; Wed, 06 Apr 2022 06:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649252835; cv=none; d=google.com; s=arc-20160816; b=m1YvW/G3RCnqfMyeQMp1DtQHvSafC0j8wX78nJw9i/f9C8/mitvd5zwiTY4ptSugCW Ay5s5tHVeBAO1HeNvCpnDrr+gQC3TsibWxXCFryB45x7j0wk2/8bCXd7IFhvWLpFic/D aEyyFzH/+KaMXAWlbjbIzfVQ0KnGmXRXyais4OR2ci1elS7SLNDv8Dcq8Tsb3sIc1DCN zjj3sfwxF9ce3STEa5I6KVSv3mRV8uTs2n645v3y9Q8/0BMbRIOC2NDgc0VZsDCOuRr0 po05JRF68M1eJXbEpBtjpTb7DOochaPoeKUS4NDXNplXQWcE0oPAfKvUJe1o0HMv4/m3 agow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o68kyqtK9LBd1M0plj58oWbCkrlfg8YNM+eF+0DRHzM=; b=TfDMWkSf7hl/LAAWecML/2MDxS4Fs7qTRexx4nFQOze775jFXd0dGXLrN3oAO1waRl laXyuvWi6ZitxyQtXgwg4PcAEgVxbmnRBJSpvLQi5KjSryKNDB+03LEp3y6PrIXxnA8z X6Ey1qI4Auqp8ljTplvSH6yTmOdzNnPdVOqJUhXBXXcA+eTtrq2PI0kqmxQ5BQbmYKts ahL3q8BerKoN/Jy/nA5iKqCa0586v4S7GnIit+RCBhEm7U6HQJdi1uG2bpQk5YRI/hXF vbyLsqzoG09fdqLhmlRpgAkCRvSFiOBJawyo8WQLSEVhz0cByGm1yiE+2uItA9vduN7B VDEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u1OER+6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 22-20020a630316000000b003816043ee3asi15732581pgd.47.2022.04.06.06.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u1OER+6z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CAC29584C44; Wed, 6 Apr 2022 04:43:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1578878AbiDEXZL (ORCPT + 99 others); Tue, 5 Apr 2022 19:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350035AbiDEJwX (ORCPT ); Tue, 5 Apr 2022 05:52:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBBD393F8; Tue, 5 Apr 2022 02:50:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DD3DD615E3; Tue, 5 Apr 2022 09:50:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF834C385A2; Tue, 5 Apr 2022 09:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152224; bh=K5Crn6yXtLbwhyzjB+6a+anwNgGjHY/VMwKVfElBrEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u1OER+6z32eY28u/lzALq7HMlyBqSsOHL56EZJPqOZMnbW7VJ0PmGil3GsTjTbQ1Z Cs+Ncs+mKi9NLp0AOp75pkFpThgDzlDJLJmIuvamfUHFonzgHrmSrxL5hHvCbt76Ik uAJ4unIPKH2x6LbTZjTKd9bLyCkHF6PbTjKB5od4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Dan Carpenter , "Souptick Joarder (HPE)" , Marc Zyngier , Sasha Levin Subject: [PATCH 5.15 698/913] irqchip/nvic: Release nvic_base upon failure Date: Tue, 5 Apr 2022 09:29:20 +0200 Message-Id: <20220405070400.756875352@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Souptick Joarder (HPE) [ Upstream commit e414c25e3399b2b3d7337dc47abccab5c71b7c8f ] smatch warning was reported as below -> smatch warnings: drivers/irqchip/irq-nvic.c:131 nvic_of_init() warn: 'nvic_base' not released on lines: 97. Release nvic_base upon failure. Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Souptick Joarder (HPE) Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220218163303.33344-1-jrdr.linux@gmail.com Signed-off-by: Sasha Levin --- drivers/irqchip/irq-nvic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c index 599bb6fc5f0a..47b3b165479e 100644 --- a/drivers/irqchip/irq-nvic.c +++ b/drivers/irqchip/irq-nvic.c @@ -92,6 +92,7 @@ static int __init nvic_of_init(struct device_node *node, if (!nvic_irq_domain) { pr_warn("Failed to allocate irq domain\n"); + iounmap(nvic_base); return -ENOMEM; } @@ -101,6 +102,7 @@ static int __init nvic_of_init(struct device_node *node, if (ret) { pr_warn("Failed to allocate irq chips\n"); irq_domain_remove(nvic_irq_domain); + iounmap(nvic_base); return ret; } -- 2.34.1