From b8e967f4cf4ebe91b34a66ce1f43196e3d65ee31 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 22 Aug 2020 04:43:58 +0000 Subject: drm/amdgpu/display bail early in dm_pp_get_static_clocks From Alex Deucher c2013b737bbde32f302575e6a1b74eb21cd419ca in linux 5.7.y/5.7.16 376814f5fcf1aadda501d1413d56e8af85d19a97 in mainline linux --- sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c index a2e1a73f66b..7cee8070cb1 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -530,6 +530,8 @@ bool dm_pp_get_static_clocks( &pp_clk_info); else if (adev->smu.ppt_funcs) ret = smu_get_current_clocks(&adev->smu, &pp_clk_info); + else + return false; if (ret) return false; -- cgit v1.2.3