Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp464066ybt; Wed, 1 Jul 2020 02:46:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBSjzJzQp6lJncnLZQgDnrph86nCKJjxuSqS7m+CoUfyv+oSXEW5oVfsVJ4seJrC/mhzn1 X-Received: by 2002:a17:906:bb0c:: with SMTP id jz12mr21395165ejb.27.1593596813558; Wed, 01 Jul 2020 02:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593596813; cv=none; d=google.com; s=arc-20160816; b=kcYnbdZmIcVVH4PyBwYtTsHqM37DeoG/7nl6QBMKi4mnCtOPprvrioTXaM2DKoR2SA c8lUZJOKIBex5SwA3osxsLfPUPzSC3/t/Spc8HmCW+gRmWYrH/85AsuQMWIXD6qQZdCY ws3j1gsk684DtcQWOcR/UZhIIrwWzbtzusqgtqIZNyAzBvlUxEoBMFDTDQ27urlGpldM Nnh51R3x0CBFm+PTbZvwdk/2ZYCD7XmFyK8KL2jsZez3quQMf1fRjh57W1XO66he1n/k 6ZvPJG5jN1inkMR6xAOtCDo5YyzmH78M+fuO/btrgKue4ZLkb5qPO7Okgz25RDCgY6bQ 4EHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sdyUrV+bTJIaY0sG31UbOvAajCIjEmGoEa/DOEF2qa4=; b=BOYsiW7Ycq6CsWt7nSy4UlXDR/vbttGQdhbFJq5zyVAU87CRSTsAZQ1IxkqvNlucnD KEt0qvJwvBp7Kf4zC4I1+GSCU/8CPVf+LlKnrRgLvYoehWWiRGYCcAZI8H7QVlSeRtvC o61V8Jq0PvtD2gABusOu1Te8qGQNm28OQbzU9unNvvmVnenWwX9dmUs9+BWLxvjfC5xA aAnb6ygvnUX1D4bAf3sjfn6KIbHGtQJBS1OnixWOYAorHtVaCT5RBPjdajVDFkYG82is L2MEPI4mkE1f0j8HbRzMfX9xz1KgoGExtF1LhCCUlsNUV4W1NXECvsfb6lCgkpvHqRUd 13qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=s2jK0jBc; 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 ca10si3490370edb.224.2020.07.01.02.46.29; Wed, 01 Jul 2020 02:46:53 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=s2jK0jBc; 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 S1729577AbgGAJnp (ORCPT + 99 others); Wed, 1 Jul 2020 05:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729470AbgGAJnp (ORCPT ); Wed, 1 Jul 2020 05:43:45 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEC5BC061755 for ; Wed, 1 Jul 2020 02:43:44 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id 22so21704519wmg.1 for ; Wed, 01 Jul 2020 02:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sdyUrV+bTJIaY0sG31UbOvAajCIjEmGoEa/DOEF2qa4=; b=s2jK0jBce/oIAI7bMEtgccP/NqgDTzSOOzPG1S39Zo2X7GdPIUErBYqTsfK4ddrRiy v31eavfu4x3ESB49rOhyPnj/tuZzQ4wZz6fbPOlL52Rl2Nxt5MS9o5+1ELPyYGAXhAR/ ivRa4k0llQ0a3XXPhsG+ZkX0f8Jy9gjsijlEnxYtwvCm+ztFSMtRXCcEQmozzqJ8dp+O XVQQ0NXvT8S4KyHn8bRF157DufApzBF0NmLsh3LvkgaXvq8/xJcgLdGjOU25f1WwgPEE ouhp/ZsPVXpXg8ovd+ckCeKVNqcDpwvgtM54U/r6PkcV4VScuL+p5dUUW1V5qDYKFtCj PFGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sdyUrV+bTJIaY0sG31UbOvAajCIjEmGoEa/DOEF2qa4=; b=Z7i1GTvdhbTzOrDSWb2PjymXjZsvboeTN8hCAhEB/z3uYi1q3SGOQkKEyJmb97OKBG 8zD8nkHDzDy6+p4Y+IcXGyFvRE3i/IPGycOSwxq9A6DhDH5vUXf+kAbcrTnXQs49rWv8 /mwsCi4UmFT/DAJUFgiEX+Ll3eIQOeEGFIswo9sMgLjmBLKUgtArVqeS9sJ/3mwSmB40 QSjKWuPSjAPPYJxtBnVT2G66dbV4DIEOlkVFHNU7GlJb2PrMvDVXgNmck/X8JXQ/I/l1 MCrxvusQYP8W5bCaq8Hv5y3qlFp27rFOM/wVRV4GkwXT/sI2zKL871/Qugb/HDwu5Vy4 K95w== X-Gm-Message-State: AOAM533XiMKuQ440bIw9NrXDMdicpMTVApPeFXaLuKu1D/YQgWzM3XYw A0eRRhihLKEvhTi9Q+Qs/YTaUoP93OJMTmQmj4h5Ow== X-Received: by 2002:a1c:a3c5:: with SMTP id m188mr25181747wme.152.1593596623526; Wed, 01 Jul 2020 02:43:43 -0700 (PDT) MIME-Version: 1.0 References: <1593569786-11500-1-git-send-email-yangtiezhu@loongson.cn> <1593569786-11500-13-git-send-email-yangtiezhu@loongson.cn> In-Reply-To: <1593569786-11500-13-git-send-email-yangtiezhu@loongson.cn> From: Anup Patel Date: Wed, 1 Jul 2020 15:13:31 +0530 Message-ID: Subject: Re: [PATCH v4 12/14] irqchip/riscv-intc: Fix potential resource leak To: Tiezhu Yang Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , "linux-kernel@vger.kernel.org List" , Markus Elfring 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 On Wed, Jul 1, 2020 at 7:47 AM Tiezhu Yang wrote: > > In the function riscv_intc_init(), system resource "intc_domain" > was not released in the error case, fix it. > > Fixes: 6b7ce8927b5a ("irqchip: RISC-V per-HART local interrupt controller driver") > Signed-off-by: Tiezhu Yang > --- > drivers/irqchip/irq-riscv-intc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/irqchip/irq-riscv-intc.c b/drivers/irqchip/irq-riscv-intc.c > index a6f97fa..8d6286c 100644 > --- a/drivers/irqchip/irq-riscv-intc.c > +++ b/drivers/irqchip/irq-riscv-intc.c > @@ -122,6 +122,7 @@ static int __init riscv_intc_init(struct device_node *node, > rc = set_handle_irq(&riscv_intc_irq); > if (rc) { > pr_err("failed to set irq handler\n"); > + irq_domain_remove(intc_domain); > return rc; > } > > -- > 2.1.0 > Looks good to me. Reviewed-by: Anup Patel Regards, Anup