diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 54d85267..70bdbc04 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -4680,7 +4680,7 @@ int gk20a_alloc_inst_block(struct gk20a *g, struct mem_desc *inst_block) | |||
4680 | 4680 | ||
4681 | void gk20a_free_inst_block(struct gk20a *g, struct mem_desc *inst_block) | 4681 | void gk20a_free_inst_block(struct gk20a *g, struct mem_desc *inst_block) |
4682 | { | 4682 | { |
4683 | if (inst_block->cpu_va) | 4683 | if (inst_block->size) |
4684 | gk20a_gmmu_free(g, inst_block); | 4684 | gk20a_gmmu_free(g, inst_block); |
4685 | } | 4685 | } |
4686 | 4686 | ||