drm/amdgpu: correct chunk_ptr to a pointer to chunk.
authorjsg <jsg@openbsd.org>
Thu, 14 Dec 2023 05:14:10 +0000 (05:14 +0000)
committerjsg <jsg@openbsd.org>
Thu, 14 Dec 2023 05:14:10 +0000 (05:14 +0000)
From YuanShang
9046665befd6e9b9b97df458dc4c41cfe63e21d3 in linux-6.1.y/6.1.68
50d51374b498457c4dea26779d32ccfed12ddaff in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c

index b8e56b1..a946824 100644 (file)
@@ -201,7 +201,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;