diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-11-08 16:13:43 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-11-11 11:20:34 -0500 |
commit | f6ab3c7cfeb22120d786f588b0dc380a238d13d3 (patch) | |
tree | e7c7249b4ca73051f2078a9eacc259ce3aa8c6cd /drivers/gpu/nvgpu/ctrl/ctrlpmgr.h | |
parent | d09d259d74d229bb22e3440ab0660ecd66f94250 (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/ctrl/ctrlpmgr.h')
0 files changed, 0 insertions, 0 deletions