diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index c8434f3d..8f9d7831 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -950,8 +950,8 @@ __releases(&cde_app->mutex) | |||
950 | return -EINVAL; | 950 | return -EINVAL; |
951 | 951 | ||
952 | nvgpu_mutex_acquire(&g->cde_app.mutex); | 952 | nvgpu_mutex_acquire(&g->cde_app.mutex); |
953 | |||
954 | cde_ctx = gk20a_cde_get_context(g); | 953 | cde_ctx = gk20a_cde_get_context(g); |
954 | nvgpu_mutex_release(&g->cde_app.mutex); | ||
955 | if (IS_ERR(cde_ctx)) { | 955 | if (IS_ERR(cde_ctx)) { |
956 | err = PTR_ERR(cde_ctx); | 956 | err = PTR_ERR(cde_ctx); |
957 | goto exit_unlock; | 957 | goto exit_unlock; |
@@ -1121,7 +1121,6 @@ exit_unlock: | |||
1121 | if (surface) | 1121 | if (surface) |
1122 | dma_buf_vunmap(compbits_scatter_buf, surface); | 1122 | dma_buf_vunmap(compbits_scatter_buf, surface); |
1123 | 1123 | ||
1124 | nvgpu_mutex_release(&g->cde_app.mutex); | ||
1125 | return err; | 1124 | return err; |
1126 | } | 1125 | } |
1127 | 1126 | ||