mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
Fix CERT INT30-C error in common.gr unit Error- Unsigned integer operation "gpc_stride * gpc" may wrap. Error- Unsigned integer operation "tpc_stride * tpc" may wrap. Use nvgpu_secure_mult_u32 function to do wrap checking. Error- Signed integer operation ctxsw_disable_count++ may overflow Add checking and return error. _ Jira NVGPU-3411 Change-Id: I6e52283ee1a1e883e0195bde79fc69d58f71d5c9 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2118147 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>