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:Dan Carpenter <dan.carpenter@linaro.org> Acked-by:
Dipen Patel <dipenp@nvidia.com> Signed-off-by:
Dipen 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:
Gautham Srinivasan <gauthams@nvidia.com> Reviewed-by:
Gautham Srinivasan <gauthams@nvidia.com> Reviewed-by:
svcacv <svcacv@nvidia.com> Reviewed-by:
Jon Hunter <jonathanh@nvidia.com> Signed-off-by:
Rajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>
Loading
Please register or sign in to comment