diff options
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 0aa202c5..b4870c33 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -817,12 +817,10 @@ static int __gk20a_channel_semaphore_incr( | |||
817 | dependency, wfi_cmd, | 817 | dependency, wfi_cmd, |
818 | need_sync_fence); | 818 | need_sync_fence); |
819 | if (err) | 819 | if (err) |
820 | goto clean_up_priv_cmd; | 820 | goto clean_up_sema; |
821 | 821 | ||
822 | return 0; | 822 | return 0; |
823 | 823 | ||
824 | clean_up_priv_cmd: | ||
825 | gk20a_free_priv_cmdbuf(c, incr_cmd); | ||
826 | clean_up_sema: | 824 | clean_up_sema: |
827 | nvgpu_semaphore_put(semaphore); | 825 | nvgpu_semaphore_put(semaphore); |
828 | return err; | 826 | return err; |