Loading
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: eb9913b5 ("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>