mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Check return code in gp10b_get_pde0_pgsz()
nvgpu_mem_begin() needs to have it's return code checked to make sure that it did not fail. Coverity defect id: 2883904 Bug 200291879 Change-Id: Ic845a73439a905997a1f871708b1f847f5b93293 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1681249 Reviewed-by: Terje Bergstrom <tbergstrom@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
c392a7270f
commit
a3a00f1d94
@@ -345,7 +345,9 @@ static enum gmmu_pgsz_gk20a gp10b_get_pde0_pgsz(struct gk20a *g,
|
||||
if (!pd->mem)
|
||||
return pgsz;
|
||||
|
||||
nvgpu_mem_begin(g, pd->mem);
|
||||
if (nvgpu_mem_begin(g, pd->mem))
|
||||
return pgsz;
|
||||
|
||||
for (i = 0; i < GP10B_PDE0_ENTRY_SIZE >> 2; i++)
|
||||
pde_v[i] = nvgpu_mem_rd32(g, pd->mem, pde_offset + i);
|
||||
nvgpu_mem_end(g, pd->mem);
|
||||
|
||||
Reference in New Issue
Block a user