From: jsg Date: Fri, 12 Jul 2024 03:50:23 +0000 (+0000) Subject: drm/amdgpu: Using uninitialized value *size when calling amdgpu_vce_cs_reloc X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ba755da86eed441d27660a3370042e6771973beb;p=openbsd drm/amdgpu: Using uninitialized value *size when calling amdgpu_vce_cs_reloc From Jesse Zhang 855ae72c20310e5402b2317fc537d911e87537ef in linux-6.6.y/6.6.39 88a9a467c548d0b3c7761b4fd54a68e70f9c0944 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c index 6a5128bc34c..d7ffec7b8e9 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c @@ -742,7 +742,8 @@ int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p, uint32_t created = 0; uint32_t allocated = 0; uint32_t tmp, handle = 0; - uint32_t *size = &tmp; + uint32_t dummy = 0xffffffff; + uint32_t *size = &dummy; unsigned int idx; int i, r = 0;