[PATCH] /drm/amdgpu: correct chunk_ptr to a pointer to chunk.

Christian König ckoenig.leichtzumerken at gmail.com
Tue Oct 31 10:21:41 UTC 2023


Am 31.10.23 um 03:55 schrieb YuanShang:
> The variable "chunk_ptr" should be a pointer pointing
> to a struct drm_amdgpu_cs_chunk instead of to a pointer
> of that.
> Signed-off-by: YuanShang <YuanShang.Mao at amd.com>

Good catch, Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> index 74769afaa33d..551b9466a441 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> @@ -208,7 +208,7 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
>   	}
>   
>   	for (i = 0; i < p->nchunks; i++) {
> -		struct drm_amdgpu_cs_chunk __user **chunk_ptr = NULL;
> +		struct drm_amdgpu_cs_chunk __user *chunk_ptr = NULL;
>   		struct drm_amdgpu_cs_chunk user_chunk;
>   		uint32_t __user *cdata;
>   



More information about the amd-gfx mailing list