diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 47f11a1f..63ab6c9f 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -593,7 +593,7 @@ int gr_gk20a_ctx_patch_write_begin(struct gk20a *g, | |||
593 | struct channel_ctx_gk20a *ch_ctx) | 593 | struct channel_ctx_gk20a *ch_ctx) |
594 | { | 594 | { |
595 | /* being defensive still... */ | 595 | /* being defensive still... */ |
596 | if (ch_ctx->patch_ctx.cpu_va) { | 596 | if (WARN_ON(ch_ctx->patch_ctx.cpu_va)) { |
597 | gk20a_err(dev_from_gk20a(g), "nested ctx patch begin?"); | 597 | gk20a_err(dev_from_gk20a(g), "nested ctx patch begin?"); |
598 | return -EBUSY; | 598 | return -EBUSY; |
599 | } | 599 | } |