diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index 142663dd..8f585afd 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c | |||
@@ -139,11 +139,11 @@ fail: | |||
139 | void gk20a_free_fence_pool(struct channel_gk20a *c) | 139 | void gk20a_free_fence_pool(struct channel_gk20a *c) |
140 | { | 140 | { |
141 | if (nvgpu_alloc_initialized(&c->fence_allocator)) { | 141 | if (nvgpu_alloc_initialized(&c->fence_allocator)) { |
142 | void *base = (void *)(uintptr_t) | 142 | struct gk20a_fence *fence_pool; |
143 | fence_pool = (struct gk20a_fence *)(uintptr_t) | ||
143 | nvgpu_alloc_base(&c->fence_allocator); | 144 | nvgpu_alloc_base(&c->fence_allocator); |
144 | |||
145 | nvgpu_alloc_destroy(&c->fence_allocator); | 145 | nvgpu_alloc_destroy(&c->fence_allocator); |
146 | nvgpu_vfree(c->g, base); | 146 | nvgpu_vfree(c->g, fence_pool); |
147 | } | 147 | } |
148 | } | 148 | } |
149 | 149 | ||