From: jsg Date: Thu, 14 Dec 2023 05:14:10 +0000 (+0000) Subject: drm/amdgpu: correct chunk_ptr to a pointer to chunk. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d774e9ba6e53d26373b068244c0acb7eaf0a65ad;p=openbsd drm/amdgpu: correct chunk_ptr to a pointer to chunk. From YuanShang 9046665befd6e9b9b97df458dc4c41cfe63e21d3 in linux-6.1.y/6.1.68 50d51374b498457c4dea26779d32ccfed12ddaff in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c index b8e56b1a86a..a946824614d 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c @@ -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;