From d6b8148d1a90ba897c4072116aa1b2af888b21ef Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 24 Aug 2023 05:59:58 +0000 Subject: [PATCH] drm/amdgpu: Fix integer overflow in amdgpu_cs_pass1 From hackyzh002 9f55d300541cb5b435984d269087810581580b00 in linux-6.1.y/6.1.47 87c2213e85bd81e4a9a4d0880c256568794ae388 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c index b2b64a6f79a..22f8a5a610e 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c @@ -185,7 +185,7 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p, uint64_t *chunk_array_user; uint64_t *chunk_array; uint32_t uf_offset = 0; - unsigned int size; + size_t size; int ret; int i; -- 2.20.1