summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
index 1fd3e34f..66e40647 100644
--- a/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
+++ b/drivers/gpu/nvgpu/common/linux/vgpu/gr_vgpu.c
@@ -499,8 +499,10 @@ int vgpu_gr_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags)
499 c->vm, 499 c->vm,
500 class_num, 500 class_num,
501 flags); 501 flags);
502 if (!err) 502 if (!err) {
503 gr_ctx->tsgid = tsg->tsgid;
503 err = vgpu_gr_tsg_bind_gr_ctx(tsg); 504 err = vgpu_gr_tsg_bind_gr_ctx(tsg);
505 }
504 if (err) { 506 if (err) {
505 nvgpu_err(g, 507 nvgpu_err(g,
506 "fail to allocate TSG gr ctx buffer, err=%d", err); 508 "fail to allocate TSG gr ctx buffer, err=%d", err);