diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/channel.c b/drivers/gpu/nvgpu/os/linux/channel.c index 37e36cb9..391950af 100644 --- a/drivers/gpu/nvgpu/os/linux/channel.c +++ b/drivers/gpu/nvgpu/os/linux/channel.c | |||
@@ -630,7 +630,8 @@ clean_up_post_fence: | |||
630 | gk20a_fence_put(job->post_fence); | 630 | gk20a_fence_put(job->post_fence); |
631 | job->post_fence = NULL; | 631 | job->post_fence = NULL; |
632 | clean_up_wait_cmd: | 632 | clean_up_wait_cmd: |
633 | free_priv_cmdbuf(c, job->wait_cmd); | 633 | if (job->wait_cmd) |
634 | free_priv_cmdbuf(c, job->wait_cmd); | ||
634 | if (!pre_alloc_enabled) | 635 | if (!pre_alloc_enabled) |
635 | job->wait_cmd = NULL; | 636 | job->wait_cmd = NULL; |
636 | fail: | 637 | fail: |