From: Thomas Fourier <fourier.thomas@gmail.com>
Cc: Thomas Fourier <fourier.thomas@gmail.com>,
Dipen Patel <dipenp@nvidia.com>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
timestamp@lists.linux.dev (open list:HTE SUBSYSTEM),
linux-tegra@vger.kernel.org (open list:TEGRA ARCHITECTURE
SUPPORT)
Subject: [PATCH] hte: tegra194-test: Prevent free_irq() on failed request_irq()
Date: Tue, 1 Dec 2026 10:39:34 +0100 [thread overview]
Message-ID: <20261201093935.8607-2-fourier.thomas@gmail.com> (raw)
When request_irq() fails in tegra_hte_test_probe(), the error path jumps
to the free_irq label and calls free_irq() on the IRQ whose request just
failed.
Skip free_irq() when the request fails.
Fixes: 9a75a7cd03c9 ("hte: Add Tegra HTE test driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
---
drivers/hte/hte-tegra194-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c
index cca33868fb03..36865fe9342b 100644
--- a/drivers/hte/hte-tegra194-test.c
+++ b/drivers/hte/hte-tegra194-test.c
@@ -148,7 +148,7 @@ static int tegra_hte_test_probe(struct platform_device *pdev)
if (ret) {
dev_err(&pdev->dev, "failed to acquire IRQ\n");
ret = -ENXIO;
- goto free_irq;
+ goto free_gpio_in;
}
cnt = of_hte_req_count(hte.pdev);
--
2.53.0
reply other threads:[~2026-12-01 9:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201093935.8607-2-fourier.thomas@gmail.com \
--to=fourier.thomas@gmail.com \
--cc=dipenp@nvidia.com \
--cc=jonathanh@nvidia.com \
--cc=linux-tegra@vger.kernel.org \
--cc=thierry.reding@kernel.org \
--cc=timestamp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox