summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index 99a6dd1b..fd298bbf 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -457,9 +457,9 @@ u32 gk20a_ce_create_context(struct gk20a *g,
457 457
458 /* allocate a tsg if needed */ 458 /* allocate a tsg if needed */
459 ce_ctx->tsg = gk20a_tsg_open(g); 459 ce_ctx->tsg = gk20a_tsg_open(g);
460
461 if (!ce_ctx->tsg) { 460 if (!ce_ctx->tsg) {
462 nvgpu_err(g, "ce: gk20a tsg not available"); 461 nvgpu_err(g, "ce: gk20a tsg not available");
462 err = -ENOMEM;
463 goto end; 463 goto end;
464 } 464 }
465 465
@@ -467,6 +467,7 @@ u32 gk20a_ce_create_context(struct gk20a *g,
467 ce_ctx->ch = gk20a_open_new_channel(g, runlist_id, true); 467 ce_ctx->ch = gk20a_open_new_channel(g, runlist_id, true);
468 if (!ce_ctx->ch) { 468 if (!ce_ctx->ch) {
469 nvgpu_err(g, "ce: gk20a channel not available"); 469 nvgpu_err(g, "ce: gk20a channel not available");
470 err = -ENOMEM;
470 goto end; 471 goto end;
471 } 472 }
472 ce_ctx->ch->wdt_enabled = false; 473 ce_ctx->ch->wdt_enabled = false;