gpu: nvgpu: mm: fix 4.7 violation in page_table

MISRA 4.7 requires checking errors returned by functions. This fixes a
case where the error information wasn't being checked before performing
other operations.

JIRA NVGPU-3340

Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Change-Id: I480fde75a07f779450096533ab29c76975aff092
Reviewed-on: https://git-master.nvidia.com/r/2120489
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>
This commit is contained in:
Philip Elcan
2019-05-16 11:23:19 -04:00
committed by mobile promotions
parent dfccdeaace
commit 40d9609eff

View File

@@ -741,6 +741,9 @@ static int nvgpu_gmmu_update_page_table(struct vm_gk20a *vm,
virt_addr,
length,
attrs);
if (err != 0) {
nvgpu_err(g, "nvgpu_gmmu_do_update_page_table returned error");
}
nvgpu_mb();