diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-05-17 09:10:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-24 10:49:05 -0400 |
commit | 794ddbd1a046ff5744209e615bdfcfd0f34c4c8d (patch) | |
tree | 3cf3c7e16550db85a5e59f206b20e804034d4576 /drivers/gpu/nvgpu/vgpu/gp10b | |
parent | c1b78dd65d6d3269c4b25d38fc57975acca02a1a (diff) |
gpu: nvgpu: fix oob access in submit profiling dump
The number of samples has to be at least the number of percentile ranges
(here 20) for the reporting to work as expected and also to not cause
negative indices in reading the sorted profile data. If there are not
enough samples, just report all zeroes.
Change-Id: Ie893859d95074f5ceabf6abe873941873668861d
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1721892
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b')
0 files changed, 0 insertions, 0 deletions