From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 ACE1C3B7742; Mon, 23 Mar 2026 13:59:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774274348; cv=none; b=KfM+zj9BK4WpckdZlKVwhkIQ2Nf9UPBYos2xBD9P+qTiwEodQ7f+jrRGgDdXLgDwoQmSSDCO2g26CLyvWoHdTHixkJDpxfLtw1i9jbAE0BgGL1qT5yEO6f3I8L0f1WgnGad5pd8yQKO8Uy9SSxvghe2aH/HxjSRohX1a1jt3Sok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774274348; c=relaxed/simple; bh=lZVilTglRIqc7vOzvDe8Cm7axUJ5iFSvXe703csHhJI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bqwOevWLCXy3avKqwY5Vv7MpcZAwlro6tVuGQ3HqilUGDy3vryxhrECUlMEBkCryk0kNMsEwJhrBQeOqEEkM7J5s4oIf9IhokeT7y60DgV47ElLBttno87ZaArc0VocPiwjNdKlkULgBl0bqGKrLZGUkhz3ztxJ+vMYAaVChuXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jm6limMb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jm6limMb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02194C2BCB9; Mon, 23 Mar 2026 13:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774274348; bh=lZVilTglRIqc7vOzvDe8Cm7axUJ5iFSvXe703csHhJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jm6limMbHnt1iEAR0/6R58NJ/2ERda5rY7w6hPk86sQ0EbnOtT8mkWfCuOfb0YZ6m QdGfs9iOmu2TUo6uGUvLtVUxIQa2rEDygpbz6LI6/5c3kKMF9OPI9wJHTVZpHH4EaX 44F1entuAQpSaDPcIvrdBBbwgCACW+DDtXE9cp1o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Felix Gu , Thomas Gleixner , Rahul Pathak Subject: [PATCH 6.19 189/220] irqchip/riscv-rpmi-sysmsi: Fix mailbox channel leak in rpmi_sysmsi_probe() Date: Mon, 23 Mar 2026 14:46:06 +0100 Message-ID: <20260323134510.566310765@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323134504.575022936@linuxfoundation.org> References: <20260323134504.575022936@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felix Gu commit 76f0930d6e809234904cf9f0f5f42ee6c1dc694e upstream. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-riscv-rpmi-sysmsi.c | 1 + 1 file changed, 1 insertion(+) --- 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 plat rc = 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; }