diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index f4ddc02e..8bdfbd05 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -244,7 +244,7 @@ static int gk20a_init_cde_buf(struct gk20a_cde_ctx *cde_ctx, | |||
244 | } | 244 | } |
245 | 245 | ||
246 | /* check that we have enough buf elems available */ | 246 | /* check that we have enough buf elems available */ |
247 | if (cde_ctx->num_bufs > MAX_CDE_BUFS) { | 247 | if (cde_ctx->num_bufs >= MAX_CDE_BUFS) { |
248 | gk20a_warn(&cde_ctx->pdev->dev, "cde: invalid data section. buffer idx = %d", | 248 | gk20a_warn(&cde_ctx->pdev->dev, "cde: invalid data section. buffer idx = %d", |
249 | cde_ctx->num_bufs); | 249 | cde_ctx->num_bufs); |
250 | return -ENOMEM; | 250 | return -ENOMEM; |