mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: unit: fix valgrind erros in page_table
Fix cases where valgrind detected "conditional jump or move depends on uninitialised value(s)" JIRA NVGPU-3098 Change-Id: I999b61e35da4136406941e2fb928fd2e693386d9 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2094641 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
13ad8142ef
commit
c4facdc058
@@ -548,7 +548,7 @@ static int test_nvgpu_gmmu_map_unmap(struct unit_module *m,
|
||||
static int test_nvgpu_gmmu_map_unmap_map_fail(struct unit_module *m,
|
||||
struct gk20a *g, void *args)
|
||||
{
|
||||
struct nvgpu_mem mem;
|
||||
struct nvgpu_mem mem = { };
|
||||
struct nvgpu_posix_fault_inj *kmem_fi =
|
||||
nvgpu_kmem_get_fault_injection();
|
||||
struct nvgpu_os_posix *p = nvgpu_os_posix_from_gk20a(g);
|
||||
@@ -858,7 +858,7 @@ static int test_nvgpu_gmmu_map_unmap_batched(struct unit_module *m,
|
||||
{
|
||||
struct nvgpu_mem mem = { }, mem2 = { };
|
||||
u64 vaddr, vaddr2;
|
||||
struct vm_gk20a_mapping_batch batch;
|
||||
struct vm_gk20a_mapping_batch batch = { };
|
||||
struct nvgpu_sgt *sgt;
|
||||
|
||||
struct test_parameters *params = (struct test_parameters *) args;
|
||||
|
||||
Reference in New Issue
Block a user