From: jsg Date: Tue, 6 Feb 2024 03:59:48 +0000 (+0000) Subject: drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()' X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5a307a659d8c9b7806320c0483b6039057aab3bd;p=openbsd drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()' From Srinivasan Shanmugam 25c2de1fbd8ee13008791a3c131f5fed02b3ccec in linux-6.6.y/6.6.16 8a44fdd3cf91debbd09b43bd2519ad2b2486ccf4 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c index ad0e8f4f063..61a6748a636 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c @@ -1224,6 +1224,7 @@ bool amdgpu_device_need_post(struct amdgpu_device *adev) return true; fw_ver = *((uint32_t *)adev->pm.fw->data + 69); + release_firmware(adev->pm.fw); if (fw_ver < 0x00160e00) return true; }