spi: tegra: Fix a memory leak in tegra_slink_probe()

In tegra_slink_probe(), when platform_get_irq() fails, it directly
returns from the function with an error code, which causes a memory leak.

Replace it with a goto label to ensure proper cleanup.

Fixes: eb9913b511f1 ("spi: tegra: Fix missing IRQ check in tegra_slink_probe()")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260202-slink-v1-1-eac50433a6f9@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by Felix Gu and committed by Mark Brown 41d9a679 edf9088b

+4 -2
+4 -2
drivers/spi/spi-tegra20-slink.c
··· 1086 1086 reset_control_deassert(tspi->rst); 1087 1087 1088 1088 spi_irq = platform_get_irq(pdev, 0); 1089 - if (spi_irq < 0) 1090 - return spi_irq; 1089 + if (spi_irq < 0) { 1090 + ret = spi_irq; 1091 + goto exit_pm_put; 1092 + } 1091 1093 tspi->irq = spi_irq; 1092 1094 ret = request_threaded_irq(tspi->irq, tegra_slink_isr, 1093 1095 tegra_slink_isr_thread, IRQF_ONESHOT,