mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Rule INT31-C requires that integer conversions do not result in lost or misinterpreted data. Rule INT32-C requires that operations on signed integers do not result in overflow. Rule EXP34-C requires that pointer dereferences never include NULL. Fix violations of these types in nvgpu.common.utils. JIRA NVGPU-3868 Change-Id: Ifcf4bc6536ca2df2adcb53b40b3e58316cc3e457 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2168576 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>