diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gr_vgpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c index 2b98dc50..f83f35b8 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |||
@@ -279,9 +279,9 @@ int vgpu_gr_alloc_gr_ctx(struct gk20a *g, | |||
279 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | 279 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); |
280 | 280 | ||
281 | if (err || msg.ret) { | 281 | if (err || msg.ret) { |
282 | kfree(gr_ctx); | ||
283 | gk20a_vm_free_va(vm, gr_ctx->mem.gpu_va, | 282 | gk20a_vm_free_va(vm, gr_ctx->mem.gpu_va, |
284 | gr_ctx->mem.size, 0); | 283 | gr_ctx->mem.size, 0); |
284 | kfree(gr_ctx); | ||
285 | err = -ENOMEM; | 285 | err = -ENOMEM; |
286 | } | 286 | } |
287 | 287 | ||