diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 8ff53d17..87f0bf74 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -115,8 +115,10 @@ static int gk20a_channel_syncpt_wait_fd(struct gk20a_channel_sync *s, int fd, | |||
115 | } | 115 | } |
116 | 116 | ||
117 | num_wait_cmds = nvhost_sync_num_pts(sync_fence); | 117 | num_wait_cmds = nvhost_sync_num_pts(sync_fence); |
118 | if (num_wait_cmds == 0) | 118 | if (num_wait_cmds == 0) { |
119 | sync_fence_put(sync_fence); | ||
119 | return 0; | 120 | return 0; |
121 | } | ||
120 | 122 | ||
121 | err = gk20a_channel_alloc_priv_cmdbuf(c, 4 * num_wait_cmds, &wait_cmd); | 123 | err = gk20a_channel_alloc_priv_cmdbuf(c, 4 * num_wait_cmds, &wait_cmd); |
122 | if (err) { | 124 | if (err) { |