diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gr_vgpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c index 46b48b33..b1a8027e 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |||
@@ -273,6 +273,7 @@ static int vgpu_gr_alloc_channel_gr_ctx(struct gk20a *g, | |||
273 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | 273 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); |
274 | 274 | ||
275 | if (err || msg.ret) { | 275 | if (err || msg.ret) { |
276 | kfree(gr_ctx); | ||
276 | gk20a_vm_free_va(ch_vm, gr_ctx->gpu_va, gr_ctx->size, 0); | 277 | gk20a_vm_free_va(ch_vm, gr_ctx->gpu_va, gr_ctx->size, 0); |
277 | err = -ENOMEM; | 278 | err = -ENOMEM; |
278 | } else | 279 | } else |