Skip to content
Unverified Commit eb9913b5 authored by Zhang Shurong's avatar Zhang Shurong Committed by Mark Brown
Browse files

spi: tegra: Fix missing IRQ check in tegra_slink_probe()

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: dc4dc360

 ("spi: tegra: add spi driver for SLINK controller")
Signed-off-by: default avatarZhang Shurong <zhang_shurong@foxmail.com>
Reviewed-by: default avatarHelen Koike <helen.koike@collabora.com>
Link: https://lore.kernel.org/r/tencent_73FCC06A3D1C14EE5175253C6FB46A07B709@qq.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2d98bdad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment