mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Fix CERT-C error for translating size from "unsigned long" to "unsigned int". Error: CERT INT31-C: nvgpu/drivers/gpu/nvgpu/common/gr/obj_ctx.c:300: cert_violation: Casting "size" from "unsigned long" to "unsigned int" without checking its value may result in lost or misinterpreted data. JIRA NVGPU-3409 Change-Id: I304fe39049d4f15361b23970ca2bcaecd2050ca3 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2114536 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>