From 1ffa5d02e11c876e12aa9fb1e49a76584f6dbe69 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 9 Sep 2024 08:31:19 +0000 Subject: [PATCH] drm/amd/pm: fix uninitialized variable warning From Jesse Zhang fc0cb02efdfbf8f913417bb06ac16a1a985523e7 in linux-6.6.y/6.6.50 7c836905520703dbc8b938993b6d4d718bc739f3 in mainline linux --- sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c b/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c index d5aebe1c40b..68cc71ecf69 100644 --- a/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c +++ b/sys/dev/pci/drm/amd/pm/powerplay/amd_powerplay.c @@ -99,7 +99,7 @@ static void pp_swctf_delayed_work_handler(struct work_struct *work) struct amdgpu_device *adev = hwmgr->adev; struct amdgpu_dpm_thermal *range = &adev->pm.dpm.thermal; - uint32_t gpu_temperature, size; + uint32_t gpu_temperature, size = sizeof(gpu_temperature); int ret; /* -- 2.20.1