summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 69fe4901..976e9171 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -2830,10 +2830,13 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c,
2830 } else { 2830 } else {
2831 if (!tsg->tsg_gr_ctx) { 2831 if (!tsg->tsg_gr_ctx) {
2832 tsg->vm = c->vm; 2832 tsg->vm = c->vm;
2833 gk20a_vm_get(tsg->vm);
2833 err = gr_gk20a_alloc_tsg_gr_ctx(g, tsg); 2834 err = gr_gk20a_alloc_tsg_gr_ctx(g, tsg);
2834 if (err) { 2835 if (err) {
2835 gk20a_err(dev_from_gk20a(g), 2836 gk20a_err(dev_from_gk20a(g),
2836 "fail to allocate TSG gr ctx buffer"); 2837 "fail to allocate TSG gr ctx buffer");
2838 gk20a_vm_put(tsg->vm);
2839 tsg->vm = NULL;
2837 goto out; 2840 goto out;
2838 } 2841 }
2839 } 2842 }