mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
As part of the function gp10b_clk_get_freqs, the code walksthrough the H/W frequency table and populates the gp10b_freq_table by picking only GP10B_NUM_SUPPORTED_FREQS = GP10B_MAX_SUPPORTED_FREQS/GP10B_FREQ_SELECT_STEP frequencies at max. The access-out-of-bounds happen when sel_freq_count reaches GP10B_NUM_SUPPORTED_FREQS and new_rate equals max_rate, resulting in one additional update that is beyond the size of gp10b_freq_table table. Also, removed the warning as it will never be true. Bug 3407276 Change-Id: Ic496ccdda1784130e7139bd93d068be58eb60a35 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2617850 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit