mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
There were several places were nvgpu_mem structs were declared on the stack and not initialized. Some fields could be used erroneously by underlying APIs. To allow the initialization of an array of nvgpu_mem in test_dma_alloc_fi_delayed_enable(), the array length had to be changed from a const to a macro. JIRA NVGPU-1563 Change-Id: I6c23445af7d932710898df2e23a8fd892bee77b3 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1967966 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User 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>
6.2 KiB
6.2 KiB