Re: [PATCH] spi: tegra: Fix missing IRQ check in tegra_slink_probe()

2023-09-12 Thread Mark Brown
On Sat, 26 Aug 2023 18:02:54 +0800, Zhang Shurong wrote: > This func misses checking for platform_get_irq()'s call and may passes the > negative error codes to request_irq(), which takes unsigned IRQ #, > causing it to fail with -EINVAL, overriding an original error code. > > Fix this by stop

Re: [PATCH] spi: tegra: Fix missing IRQ check in tegra_slink_probe()

2023-08-28 Thread Helen Mae Koike Fornazier
On Saturday, August 26, 2023 07:02 -03, Zhang Shurong wrote: > This func misses checking for platform_get_irq()'s call and may passes the > negative error codes to request_irq(), which takes unsigned IRQ #, > causing it to fail with -EINVAL, overriding an original error code. > > Fix this by

[PATCH] spi: tegra: Fix missing IRQ check in tegra_slink_probe()

2023-08-27 Thread Zhang Shurong
This func misses checking for platform_get_irq()'s call and may passes the negative error codes to request_irq(), which takes unsigned IRQ #, causing it to fail with -EINVAL, overriding an original error code. Fix this by stop calling request_irq() with invalid IRQ #s. Fixes: dc4dc3605639 ("spi: