]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: tegra: Fix error return code in tegra210_bpmp_init()
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 13 May 2021 13:26:46 +0000 (21:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:10:52 +0000 (16:10 +0200)
commitc504f6aefc0bd0464a94019f247732c722cb4ef3
treefa58208303df11c797e88fa6500abd2b974b44fa
parent8676fa95c5cd390305c78a2a16f22e7306e74030
firmware: tegra: Fix error return code in tegra210_bpmp_init()

[ Upstream commit 7fea67710e9f6a111a2c9440576f2396ccd92d57 ]

When call irq_get_irq_data() to get the IRQ's irq_data failed, an
appropriate error code -ENOENT should be returned. However, we directly
return 'err', which records the IRQ number instead of the error code.

Fixes: 2fa68d5e7fc1 ("firmware: tegra: add bpmp driver for Tegra210")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/tegra/bpmp-tegra210.c