summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 643adca5..c12f196d 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -2155,7 +2155,7 @@ static int gk20a_ioctl_channel_submit_gpfifo(
2155 * synchronization; we might still wait and do an increment */ 2155 * synchronization; we might still wait and do an increment */
2156 size = args->num_entries * sizeof(struct nvgpu_gpfifo); 2156 size = args->num_entries * sizeof(struct nvgpu_gpfifo);
2157 if (size) { 2157 if (size) {
2158 gpfifo = vmalloc(size); 2158 gpfifo = nvgpu_alloc(size, false);
2159 if (!gpfifo) 2159 if (!gpfifo)
2160 return -ENOMEM; 2160 return -ENOMEM;
2161 2161
@@ -2190,7 +2190,7 @@ static int gk20a_ioctl_channel_submit_gpfifo(
2190 gk20a_fence_put(fence_out); 2190 gk20a_fence_put(fence_out);
2191 2191
2192clean_up: 2192clean_up:
2193 vfree(gpfifo); 2193 nvgpu_free(gpfifo);
2194 return ret; 2194 return ret;
2195} 2195}
2196 2196