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 243A728935A; Fri, 17 Oct 2025 15:22:25 +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=1760714545; cv=none; b=FjRkGxlOGTT2uJHL2xz/JjeRukPDUY8NPWh7SBJsBDGwVWBmTSdP/+abqRkz1Ch+Md8wqi+cDN0NWVz0/WOczpE2QXSTKl9dUGhdeJaTD/X4PGFmUXqXbxFJXnAYrARNOwc2cPuOnxXC+sUiwhC0QCoJU1oA8qMeKOuZvqht05M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760714545; c=relaxed/simple; bh=dHEH3ioIGug+pX0fo0FeF3O0RDkU0Myg+Ojx8Bttl6E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IkYzd4k1khfG1vs/2gJWDgpvu6t44aXu91Z81DelKCxakbs1rxNAdw3qhmtJZmKV2/T8WPK10yQV2openZdg4IOrbBeF7GlWXd9cXPYnWTCjimO+boAez55qoRdLwRsle2nF4yVqwFbC/Mb+uP7XjjZhfx+9yQ6IT6fQJbFM8X4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QTxDEoc7; 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="QTxDEoc7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CA12C4CEE7; Fri, 17 Oct 2025 15:22:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760714545; bh=dHEH3ioIGug+pX0fo0FeF3O0RDkU0Myg+Ojx8Bttl6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QTxDEoc7Xxr5zKBARbebQLKq0mm9ydxNwQjMWAf3I1FazuGsbDWwKtrT9s01pA/oH RkxveMTfqjNPx2dD0bLUh9ni5IIkJnkgrz37OLyA4locrnZ8fg1XMI2DOTmGHHpw3v fN5wGXi7D7jIqaVHt+77kkgGASi0dqLMpz8TVM+g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jiri Slaby , Siddharth Vadapalli , Manivannan Sadhasivam Subject: [PATCH 6.12 183/277] PCI: keystone: Use devm_request_irq() to free "ks-pcie-error-irq" on exit Date: Fri, 17 Oct 2025 16:53:10 +0200 Message-ID: <20251017145153.807729617@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145147.138822285@linuxfoundation.org> References: <20251017145147.138822285@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Siddharth Vadapalli commit e51d05f523e43ce5d2bad957943a2b14f68078cd upstream. Commit under Fixes introduced the IRQ handler for "ks-pcie-error-irq". The interrupt is acquired using "request_irq()" but is never freed if the driver exits due to an error. Although the section in the driver that invokes "request_irq()" has moved around over time, the issue hasn't been addressed until now. Fix this by using "devm_request_irq()" which automatically frees the interrupt if the driver exits. Fixes: 025dd3daeda7 ("PCI: keystone: Add error IRQ handler") Reported-by: Jiri Slaby Closes: https://lore.kernel.org/r/3d3a4b52-e343-42f3-9d69-94c259812143@kernel.org Signed-off-by: Siddharth Vadapalli Signed-off-by: Manivannan Sadhasivam Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20250912100802.3136121-2-s-vadapalli@ti.com Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/dwc/pci-keystone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -1202,8 +1202,8 @@ static int ks_pcie_probe(struct platform if (irq < 0) return irq; - ret = request_irq(irq, ks_pcie_err_irq_handler, IRQF_SHARED, - "ks-pcie-error-irq", ks_pcie); + ret = devm_request_irq(dev, irq, ks_pcie_err_irq_handler, IRQF_SHARED, + "ks-pcie-error-irq", ks_pcie); if (ret < 0) { dev_err(dev, "failed to request error IRQ %d\n", irq);