Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH] hte: tegra194-test: Prevent free_irq() on failed request_irq()
@ 2026-12-01  9:39 Thomas Fourier
  0 siblings, 0 replies; only message in thread
From: Thomas Fourier @ 2026-12-01  9:39 UTC (permalink / raw)
  Cc: Thomas Fourier, Dipen Patel, Thierry Reding, Jonathan Hunter,
	open list:HTE SUBSYSTEM, open list:TEGRA ARCHITECTURE SUPPORT

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  9:39 [PATCH] hte: tegra194-test: Prevent free_irq() on failed request_irq() Thomas Fourier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox