From f6656dc00fcd56ac2d4bd40711324e465f24d4b5 Mon Sep 17 00:00:00 2001 From: Vinod G Date: Tue, 22 Jan 2019 17:42:15 -0800 Subject: [PATCH] gpu: nvgpu: fix allocation error for rtvcb Code correction to use right variable for gfxp_rtvcb_ctxsw_buffer. Bug 2492222 Change-Id: I844a2a78272c8ce90c8174864bd81153ffc9d982 Signed-off-by: Vinod G Reviewed-on: https://git-master.nvidia.com/r/2001376 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Seshendra Gadagottu Reviewed-by: Seema Khowala Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/gr/ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/gr/ctx.c b/drivers/gpu/nvgpu/common/gr/ctx.c index b19517311..127fd24fb 100644 --- a/drivers/gpu/nvgpu/common/gr/ctx.c +++ b/drivers/gpu/nvgpu/common/gr/ctx.c @@ -288,7 +288,7 @@ int nvgpu_gr_ctx_alloc_ctxsw_buffers(struct gk20a *g, if (gr_ctx_desc->size[NVGPU_GR_CTX_GFXP_RTVCB_CTXSW] != 0U) { err = nvgpu_gr_ctx_alloc_ctxsw_buffer(vm, gr_ctx_desc->size[NVGPU_GR_CTX_GFXP_RTVCB_CTXSW], - &gr_ctx->pagepool_ctxsw_buffer); + &gr_ctx->gfxp_rtvcb_ctxsw_buffer); if (err != 0) { nvgpu_err(g, "cannot allocate gfxp rtvcb"); goto fail_free_pagepool;