Skip to content
Commit 2018d329 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rajeshkumar Ramasamy
Browse files

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

commit f82dfa3f20c99be175e6dacbc45cb6a250b1828d from
https://nv-tegra.nvidia.com/r/3rdparty/canonical/linux-jammy.git

 jetson_36.3

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.

Bug 3961133

Change-Id: I46e999f9fa3a261cf09f50e20a43267a752b7eb4
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>
Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-jammy/+/3088879


GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: default avatarGautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: default avatarGautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: default avatarsvcacv <svcacv@nvidia.com>
Reviewed-by: default avatarJon Hunter <jonathanh@nvidia.com>
Signed-off-by: default avatarRajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>
parent 2c2421a5
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