diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/cde.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/cde.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c index f6020d9a..775f9657 100644 --- a/drivers/gpu/nvgpu/common/linux/cde.c +++ b/drivers/gpu/nvgpu/common/linux/cde.c | |||
@@ -1046,15 +1046,16 @@ __releases(&l->cde_app->mutex) | |||
1046 | 1046 | ||
1047 | /* map the destination buffer */ | 1047 | /* map the destination buffer */ |
1048 | get_dma_buf(compbits_scatter_buf); /* a ref for nvgpu_vm_map_linux */ | 1048 | get_dma_buf(compbits_scatter_buf); /* a ref for nvgpu_vm_map_linux */ |
1049 | map_vaddr = nvgpu_vm_map_linux(cde_ctx->vm, compbits_scatter_buf, 0, | 1049 | err = nvgpu_vm_map_linux(cde_ctx->vm, compbits_scatter_buf, 0, |
1050 | NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE | | 1050 | NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE | |
1051 | NVGPU_AS_MAP_BUFFER_FLAGS_DIRECT_KIND_CTRL, | 1051 | NVGPU_AS_MAP_BUFFER_FLAGS_DIRECT_KIND_CTRL, |
1052 | NV_KIND_INVALID, | 1052 | NV_KIND_INVALID, |
1053 | compbits_kind, /* incompressible kind */ | 1053 | compbits_kind, /* incompressible kind */ |
1054 | gk20a_mem_flag_none, | 1054 | gk20a_mem_flag_none, |
1055 | map_offset, map_size, | 1055 | map_offset, map_size, |
1056 | NULL); | 1056 | NULL, |
1057 | if (!map_vaddr) { | 1057 | &map_vaddr); |
1058 | if (err) { | ||
1058 | dma_buf_put(compbits_scatter_buf); | 1059 | dma_buf_put(compbits_scatter_buf); |
1059 | err = -EINVAL; | 1060 | err = -EINVAL; |
1060 | goto exit_idle; | 1061 | goto exit_idle; |