aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
index fa81d0c1ba41..37b201b95f15 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
@@ -106,7 +106,8 @@ nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc)
106 } else 106 } else
107 return ret; 107 return ret;
108 108
109 if (IS_ERR((memory = nvkm_umem_search(client, handle)))) { 109 memory = nvkm_umem_search(client, handle);
110 if (IS_ERR(memory)) {
110 VMM_DEBUG(vmm, "memory %016llx %ld\n", handle, PTR_ERR(memory)); 111 VMM_DEBUG(vmm, "memory %016llx %ld\n", handle, PTR_ERR(memory));
111 return PTR_ERR(memory); 112 return PTR_ERR(memory);
112 } 113 }