summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gk20a
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-11-08 16:13:43 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-11-11 11:20:34 -0500
commitf6ab3c7cfeb22120d786f588b0dc380a238d13d3 (patch)
treee7c7249b4ca73051f2078a9eacc259ce3aa8c6cd /drivers/gpu/nvgpu/vgpu/gk20a
parentd09d259d74d229bb22e3440ab0660ecd66f94250 (diff)
gpu: nvgpu: Prevent integer overflow of GPU config
In CDE GPU CONFIGURATION the result is computed using 32-bit arithmetic and returned as 64-bit unsigned integer. Cast intermediate result to u64 to prevent unintentional overflow. Change-Id: Iebe53e2b17c1aaa498245a52962c3dbad7ce893e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1249962 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gk20a')
0 files changed, 0 insertions, 0 deletions