Skip to content
Commit c381e695 authored by Zhen Lei's avatar Zhen Lei Committed by Greg Kroah-Hartman
Browse files

firmware: tegra: Fix error return code in tegra210_bpmp_init()



[ Upstream commit 7fea6771 ]

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: 139251fc ("firmware: tegra: add bpmp driver for Tegra210")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f58a3bc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment