mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
INT-30 requires checking for overflow of arithmetic operations on unsigned integers. INT-31 requires bounds checking for unsigned integers cast to smaller size. Fix these violations by using the safe ops in nvgpu.common.mm.mm and nvgpu.hal.mm.mm. JIRA NVGPU-3848 Change-Id: I2751a14fb1f45d330a92040ac3c7777c52ae9199 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2158860 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>