mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: unit: mm: remove errant call to info_mem_destroy
Remove the second call to info_mem_destroy() in the unit test test_page_faults_clean(). This did not add any additional coverage and causes an attempt to access an invalid mutex since it is destroyed by the first call. JIRA NVGPU-4987 Change-Id: Ibbf5c4c300802566b6260f0236f705d48bebf3ee Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2302644 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
88e27271eb
commit
d01ab94537
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -339,9 +339,6 @@ int test_page_faults_clean(struct unit_module *m, struct gk20a *g, void *args)
|
||||
nvgpu_vm_put(g->mm.pmu.vm);
|
||||
nvgpu_vm_put(g->mm.bar2.vm);
|
||||
|
||||
/* Call again to test some branches */
|
||||
g->ops.mm.mmu_fault.info_mem_destroy(g);
|
||||
|
||||
return UNIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user