]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_...
authorZhang Shurong <zhang_shurong@foxmail.com>
Sat, 22 Jul 2023 15:49:09 +0000 (23:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 08:46:54 +0000 (10:46 +0200)
commiteb74f97a59ddcd4b4e8ea2ec417f067570518162
tree7a86224474fadc66c723c7b97ad75b93aba3f65c
parentdd59a78d31c8c09078ec2ae9ed349a314b2f61f3
spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe()

[ Upstream commit 29a449e765ff70a5bd533be94babb6d36985d096 ]

The platform_get_irq might be failed and return a negative result. So
there should have an error handling code.

Fixed this by adding an error handling code.

Fixes: 8528547bcc33 ("spi: tegra: add spi driver for sflash controller")
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_71FC162D589E4788C2152AAC84CD8D5C6D06@qq.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-tegra20-sflash.c