Skip to content
Commit fed87ce0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

hte: tegra-194: Fix off by one in tegra_hte_map_to_line_id()



[ Upstream commit e078180d ]

The "map_sz" is the number of elements in the "m" array so the >
comparison needs to be changed to >= to prevent an out of bounds
read.

Fixes: 09574cca ("hte: Add Tegra194 HTE kernel provider")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Acked-by: default avatarDipen Patel <dipenp@nvidia.com>
Signed-off-by: default avatarDipen Patel <dipenp@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a51e150e
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