From nobody Mon Apr 6 23:36:57 2026 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 28D7E3A2576; Tue, 17 Mar 2026 10:18:56 +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=1773742738; cv=none; b=pvIvAg/EKeev5Tz+hxfHvKseYEb5FHCBjCb1JFb+CpgJuLbs60IHgqMUz2Qz+zkmdsH8zfn/UwzEiU2xKpHspz5k4RfzuTrbByuAapnZ0SxErlpjqV8Ks2P7emaYSn3o5ur7M7oQVFt3LEvhAJVLegsiawwUC3wma83cv+Zfr1Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773742738; c=relaxed/simple; bh=jPnYWUdNEjc9kUZMOXRUxrepSYhE+tXXV3PPmUEzhts=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=IpPQNbcadzqRegYyMTQaQxVDsU9lJHXIaSgrzDPYhmhe+oo0n2GTsYbUnWFY1tPHEiKa0jf6bXeATJ5vDMQbe9zTCTxhqgmmhz90h7SlBH83yUggz0f3IRwnnpXkPimYTL/O+HxBXkktFIETGdxaMpQY+4lCPjnrjUJq50J6C7w= 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=yRoEmxVM; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=IHDUxvmp; 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="yRoEmxVM"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="IHDUxvmp" Date: Tue, 17 Mar 2026 10:18:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773742733; 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=AwtexRlYAbh2H4NdKQSY59V2rxetHEziyTG51wy+FcA=; b=yRoEmxVMOhf5tixRI9lK/V3B6grfVnSgNNO9h1zMdrSwhX9vYXYkuGRtb5fw7EfxzbQZw6 RenloPS5y+IfyY/XdHystIS1pbrl3NXpKOIU41cdsQmmMmtGgNd6azZzwYt7snYqofwEb0 wSPUlBEHZBcLwqZPwNPKml0TV9vvACOUUJaTM15hll1unFn3y5D5ILYy1FqJXExPd6cgzt ty6Ic0KFtiApqOzbWCE8ECfQ1uc7OQDB+jnaelM5Y+VkoaJgof/iujj4D/Omhokg15m0vb 1jRtwPZsmu0+yh3JCf9jEbQlsVfWySIqL6VHzkEwuiq4nKL++ySRHz+GNi2ozA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773742733; 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=AwtexRlYAbh2H4NdKQSY59V2rxetHEziyTG51wy+FcA=; b=IHDUxvmp6CLePqKJB1+xAH/kb2DLdo95kS67rNcmkwp/4vliD2/toSJ0Wb1FudwKAGkOL+ e3T00oj26NufBOAQ== From: "tip-bot2 for Felix Gu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip/riscv-rpmi-sysmsi: Fix mailbox channel leak in rpmi_sysmsi_probe() Cc: Felix Gu , Thomas Gleixner , stable@vger.kernel.org, Rahul Pathak , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20260315-sysmsi-v1-1-5f090c86c2ca@gmail.com> References: <20260315-sysmsi-v1-1-5f090c86c2ca@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177374273228.1647592.6158346179399854363.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/urgent branch of tip: Commit-ID: 76f0930d6e809234904cf9f0f5f42ee6c1dc694e Gitweb: https://git.kernel.org/tip/76f0930d6e809234904cf9f0f5f42ee6c= 1dc694e Author: Felix Gu AuthorDate: Sun, 15 Mar 2026 15:17:54 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 17 Mar 2026 11:16:15 +01:00 irqchip/riscv-rpmi-sysmsi: Fix mailbox channel leak in rpmi_sysmsi_probe() When riscv_acpi_get_gsi_info() fails, the mailbox channel previously requested via mbox_request_channel() is not freed. Add the missing mbox_free_channel() call to prevent the resource leak. Fixes: 4752b0cfbc37 ("irqchip/riscv-rpmi-sysmsi: Add ACPI support") Signed-off-by: Felix Gu Signed-off-by: Thomas Gleixner Cc: stable@vger.kernel.org Reviewed-by: Rahul Pathak Link: https://patch.msgid.link/20260315-sysmsi-v1-1-5f090c86c2ca@gmail.com --- drivers/irqchip/irq-riscv-rpmi-sysmsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-riscv-rpmi-sysmsi.c b/drivers/irqchip/irq-= riscv-rpmi-sysmsi.c index 5c74c56..612f397 100644 --- a/drivers/irqchip/irq-riscv-rpmi-sysmsi.c +++ b/drivers/irqchip/irq-riscv-rpmi-sysmsi.c @@ -250,6 +250,7 @@ static int rpmi_sysmsi_probe(struct platform_device *pd= ev) rc =3D riscv_acpi_get_gsi_info(fwnode, &priv->gsi_base, &id, &nr_irqs, NULL); if (rc) { + mbox_free_channel(priv->chan); dev_err(dev, "failed to find GSI mapping\n"); return rc; }