From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F67F30F806; Tue, 7 Jul 2026 20:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783457678; cv=none; b=fE2uROeqf6ewQ1l5aR6VQn/Y8JPL6KZ3G9bQOc2WGZ2FukMvC832H7eqeb685Rgb5K23dex+66vGH83BSE2L34FWL0ToSbnNAL7UPs/gBJxgz5rHV674qgzF0083Y6tXTYbfeqFugBUP2m0snJ9X3xq2n+nxeqeaIBo7O1TRKPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783457678; c=relaxed/simple; bh=KbTjY+YuYy1aVIzzMv369iN3dxdRsCmo650ib58GWio=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=eRip5OhYiJlxhv+AktXpS7FzXjNgJAme5upjpEuzI0w/kKzPFLF51Vzx8Smnh5Q/hwSxHgRXcS7omaW4zHwyQGaECzH4OFvl4uQQ9x6il9I7qKqsNmlplmPw6NR+IK/OUke4FpUw0wkQY1bxEaf6UMhQ0bwOe9ymF4Zvwr/CxQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GxHRYBTz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bGpzoGQU; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GxHRYBTz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bGpzoGQU" Date: Tue, 07 Jul 2026 20:54:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783457674; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iNUqmYR8FFbC5up1KA317LURU9zNgmFkb2RQgAH2/Vs=; b=GxHRYBTzzLdSz0ggXTh3RYi1/hAdX7vI9RzQYQv01QP/nlEN165oq+0QqX1SdnwrHvQ30Y Lq5vl2LCOIbt/5vWMLLlqiI1oGuai2ydQXqQkmc8e2+38qRvsia4pOw4GJeNTjz7G/X+CI xgRQylXeNRYOS0I5LFROIYnC9h68Za8w45n5X7Pa+LY5qMIpuctdBkrDoWzAdwMqvs+E+j cio4ItXmzcCwqueO31BTMo7WckD7BFKGWVCMm+oslZKXRXWYidSCnY3R9QWXfUtb4o+cx+ XhzNDr82JfrCrHaNlCi9lS9oROeyHXKNKitBIOI5AWmUBM0720tnnL2cugn0Rw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783457674; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iNUqmYR8FFbC5up1KA317LURU9zNgmFkb2RQgAH2/Vs=; b=bGpzoGQUnSlyBuAx7GErfv4xXEKtKOtTiftVhFXaanP1e3vtUnMTnG8sPZk2PwnsbmjqBL rVPWrWCwOt4Gp7Bw== From: "tip-bot2 for Kemeng Shi" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/gic-v3-its: Fix memleak in its_probe_one() Cc: Kemeng Shi , Thomas Gleixner , Radu Rendec , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260702033050.1583-2-shikemeng@huaweicloud.com> References: <20260702033050.1583-2-shikemeng@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178345767313.744054.2153233997978345196.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/drivers branch of tip: Commit-ID: 1efffab6fe336a5c4fd3c2886f255cd2f998e65f Gitweb: https://git.kernel.org/tip/1efffab6fe336a5c4fd3c2886f255cd2f99= 8e65f Author: Kemeng Shi AuthorDate: Thu, 02 Jul 2026 11:30:45 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 07 Jul 2026 22:49:37 +02:00 irqchip/gic-v3-its: Fix memleak in its_probe_one() Fix collection leak when its_init_domain() failed in its_probe_one(). Fixes: 4c21f3c26ecc2 ("irqchip: GICv3: ITS: DT probing and initialization") Signed-off-by: Kemeng Shi Signed-off-by: Thomas Gleixner Reviewed-by: Radu Rendec Link: https://patch.msgid.link/20260702033050.1583-2-shikemeng@huaweicloud.com --- drivers/irqchip/irq-gic-v3-its.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-it= s.c index b57d81a..1ab6fc7 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -5322,7 +5322,7 @@ static int __init its_probe_one(struct its_node *its) =20 err =3D its_init_domain(its); if (err) - goto out_free_tables; + goto out_free_collection; =20 raw_spin_lock(&its_lock); list_add(&its->entry, &its_nodes); @@ -5330,6 +5330,8 @@ static int __init its_probe_one(struct its_node *its) =20 return 0; =20 +out_free_collection: + kfree(its->collections); out_free_tables: its_free_tables(its); out_free_cmd: