Skip to content

Commit 50d5137

Browse files
YuanShangalexdeucher
authored andcommitted
drm/amdgpu: correct chunk_ptr to a pointer to chunk.
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@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent a585553 commit 50d5137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
207207
}
208208

209209
for (i = 0; i < p->nchunks; i++) {
210-
struct drm_amdgpu_cs_chunk __user **chunk_ptr = NULL;
210+
struct drm_amdgpu_cs_chunk __user *chunk_ptr = NULL;
211211
struct drm_amdgpu_cs_chunk user_chunk;
212212
uint32_t __user *cdata;
213213

0 commit comments

Comments
 (0)