summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_as.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_as.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_as.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_as.c b/drivers/gpu/nvgpu/common/linux/ioctl_as.c
index 08064370..18d0dd07 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_as.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_as.c
@@ -118,7 +118,10 @@ static int gk20a_as_ioctl_unmap_buffer(
118 struct nvgpu_as_unmap_buffer_args *args) 118 struct nvgpu_as_unmap_buffer_args *args)
119{ 119{
120 gk20a_dbg_fn(""); 120 gk20a_dbg_fn("");
121 return nvgpu_vm_unmap_buffer(as_share->vm, args->offset, NULL); 121
122 nvgpu_vm_unmap(as_share->vm, args->offset, NULL);
123
124 return 0;
122} 125}
123 126
124static int gk20a_as_ioctl_map_buffer_batch( 127static int gk20a_as_ioctl_map_buffer_batch(
@@ -155,10 +158,7 @@ static int gk20a_as_ioctl_map_buffer_batch(
155 break; 158 break;
156 } 159 }
157 160
158 err = nvgpu_vm_unmap_buffer(as_share->vm, unmap_args.offset, 161 nvgpu_vm_unmap(as_share->vm, unmap_args.offset, &batch);
159 &batch);
160 if (err)
161 break;
162 } 162 }
163 163
164 if (err) { 164 if (err) {