mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Add checks for type before indexing log_types. Error: CERT ARR30-C: drivers/gpu/nvgpu/os/posix/log.c:63: cert_violation: "log_types[type]" evaluates to an address that could be at negative offset of an array. Jira NVGPU-3560 Change-Id: I7ffe9bb2e12be6eea465618e4860697862ee1845 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2122867 Reviewed-by: Automatic_Commit_Validation_User 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: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
3.6 KiB
3.6 KiB