Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp226064ybt; Tue, 30 Jun 2020 19:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv4Ikrhz/ggfPO81ogoBL2WQPvTQoWZgV+IbouYitGCnA3no5/+frJl+fLKJjl7i0qWreX X-Received: by 2002:a17:906:1e95:: with SMTP id e21mr21755130ejj.240.1593569853799; Tue, 30 Jun 2020 19:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593569853; cv=none; d=google.com; s=arc-20160816; b=ie/xu0JIM5aN5S48JrCuHQMY/KTLOG9t1liEj74vHHH+3GKE1kU7GFGgw+NX2smSRm GUjgUMskn+F35VUYMgoQ2lcy4E63F84975NjOlqFbbkfngDfxWM0GiJiqj5MNOtI2xWy nL7Gq762x99RPCJTYaMvjqcnXZJXFXtv/1ZP58P8m22KUfkEUZiLDGO5bi/RSLM1TLVG NY0XjUuTMS69Cw+MVGz/EEnUL4/Mt5gDDuXVaJOH42aDzFej0oWVxCxIdS81IbLsMXFr ihD6LgqLisiZbgqw3EwBrM2rFOSvNVkVaKwSNPQcYOlAHGovEkgQBMwI8d86oPuBTTC1 PjFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=LYtpuc2dyf88+XsIR4Hu1JfbOq6UIUO6mOCR5JsJk8s=; b=Sh1L4EFKWiSZu1nMEt9my1ThsTh6LWYG0DjPYLu6RbL6PYSJ2GsIDMLYapEUSgwHAS 44A3EsFlahw8QnYNEDBEpUp+fJHXVVfWBOZEAkMojTUO1uwvnNrwV52xWr+pVxTYPVOS dmkFU3FhUZnYoVkvSdGE6Z6ufBROrPEnXkTq7d8++nIBDRX2Vj7lZ4uFXlEx220AVj6x M1sF1ZknrIQMKxdluFuOVwA/9GQ0eNa6Ug2NcOYC3gaYSFXf2Xm1d2ypNd7BPbC11VRy HUG1b1KUhMN5yAJaAWmUmvNLMTt2ZRO4gqp6tuwBx8plVpR6fFc2ounkzbCUjvySZWZ0 b+ow== 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 e20si2854194edy.5.2020.06.30.19.17.10; Tue, 30 Jun 2020 19:17:33 -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 S1726855AbgGACQp (ORCPT + 99 others); Tue, 30 Jun 2020 22:16:45 -0400 Received: from mail.loongson.cn ([114.242.206.163]:47700 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726752AbgGACQh (ORCPT ); Tue, 30 Jun 2020 22:16:37 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxz2r68fteU2dNAA--.5801S2; Wed, 01 Jul 2020 10:16:27 +0800 (CST) From: Tiezhu Yang To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-kernel@vger.kernel.org, Markus Elfring Subject: [PATCH v4 00/14] irqchip: Fix potential resource leaks Date: Wed, 1 Jul 2020 10:16:12 +0800 Message-Id: <1593569786-11500-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dxz2r68fteU2dNAA--.5801S2 X-Coremail-Antispam: 1UD129KBjvJXoW7AFy5GF48uFW8Wr4xCryxGrg_yoW8trW8pF 4xta9Ivr48Cay3JrnxAr1jyF9xXwnYyay7K3s3A343Xwn5WryDGF1UAw1rXryUWayfGF1j kr1rtFyUC3WDAFUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkqb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4 vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40E FcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Gr 0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkIecxEwVAFwVW8JwCF 04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r 18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vI r41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr 1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF 0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU5AKs5UUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I test the irqchip code of Loongson, I read the related code of other chips in drivers/irqchip and I find some potential resource leaks in the error path, I think it is better to fix them. v2: - Split the first patch into a new patch series which includes small patches and add "Fixes" tag - Use "goto" label to handle error path in some patches v3: - Add missed variable "ret" in the patch #5 and #13 v4: - Modify the commit message of each patch suggested by Markus Elfring - Make "irq_domain_remove(root_domain)" under CONFIG_SMP in patch #3 - Add a return statement before goto label in patch #4 Tiezhu Yang (14): irqchip/ath79-misc: Fix potential resource leaks irqchip/csky-apb-intc: Fix potential resource leaks irqchip/csky-mpintc: Fix potential resource leaks irqchip/davinci-aintc: Fix potential resource leaks irqchip/davinci-cp-intc: Fix potential resource leaks irqchip/digicolor: Fix potential resource leaks irqchip/dw-apb-ictl: Fix potential resource leaks irqchip/ls1x: Fix potential resource leaks irqchip/mscc-ocelot: Fix potential resource leaks irqchip/nvic: Fix potential resource leaks irqchip/omap-intc: Fix potential resource leak irqchip/riscv-intc: Fix potential resource leak irqchip/s3c24xx: Fix potential resource leaks irqchip/xilinx-intc: Fix potential resource leak drivers/irqchip/irq-ath79-misc.c | 14 +++++++++++--- drivers/irqchip/irq-csky-apb-intc.c | 12 ++++++++++-- drivers/irqchip/irq-csky-mpintc.c | 34 +++++++++++++++++++++++++--------- drivers/irqchip/irq-davinci-aintc.c | 18 ++++++++++++++---- drivers/irqchip/irq-davinci-cp-intc.c | 18 +++++++++++++++--- drivers/irqchip/irq-digicolor.c | 14 +++++++++++--- drivers/irqchip/irq-dw-apb-ictl.c | 11 ++++++++--- drivers/irqchip/irq-ls1x.c | 4 +++- drivers/irqchip/irq-mscc-ocelot.c | 6 ++++-- drivers/irqchip/irq-nvic.c | 12 +++++++++--- drivers/irqchip/irq-omap-intc.c | 4 +++- drivers/irqchip/irq-riscv-intc.c | 1 + drivers/irqchip/irq-s3c24xx.c | 23 +++++++++++++++++------ drivers/irqchip/irq-xilinx-intc.c | 4 +++- 14 files changed, 134 insertions(+), 41 deletions(-) -- 2.1.0