Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Nitin Kumbhar 0fcd58b3f6 gpu: nvgpu: posix: fix ARR30 CERT C violation
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>
2019-06-06 16:27:23 -07:00
..
2019-05-06 16:46:00 -07:00
2019-05-28 02:05:43 -07:00
2018-06-27 07:30:06 -07:00
2019-04-22 03:15:09 -07:00
2019-02-01 09:45:57 -08:00
2018-07-05 21:48:44 -07:00
2019-05-16 04:29:50 -07:00
2019-02-11 20:55:07 -08:00
2018-12-13 04:56:14 -08:00
2019-04-10 06:03:59 -07:00
2018-10-24 23:16:20 -07:00