mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
dfccdeaace
commit
40d9609eff
@@ -741,6 +741,9 @@ static int nvgpu_gmmu_update_page_table(struct vm_gk20a *vm,
|
|||||||
virt_addr,
|
virt_addr,
|
||||||
length,
|
length,
|
||||||
attrs);
|
attrs);
|
||||||
|
if (err != 0) {
|
||||||
|
nvgpu_err(g, "nvgpu_gmmu_do_update_page_table returned error");
|
||||||
|
}
|
||||||
|
|
||||||
nvgpu_mb();
|
nvgpu_mb();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user