aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2581-drm-amd-amdgpu-Fix-amdgpu_set_pp_od_clk_voltage-erro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2581-drm-amd-amdgpu-Fix-amdgpu_set_pp_od_clk_voltage-erro.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2581-drm-amd-amdgpu-Fix-amdgpu_set_pp_od_clk_voltage-erro.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2581-drm-amd-amdgpu-Fix-amdgpu_set_pp_od_clk_voltage-erro.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2581-drm-amd-amdgpu-Fix-amdgpu_set_pp_od_clk_voltage-erro.patch
new file mode 100644
index 00000000..5bb32688
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2581-drm-amd-amdgpu-Fix-amdgpu_set_pp_od_clk_voltage-erro.patch
@@ -0,0 +1,42 @@
+From c41df5858892dc5833052c0dfa91806089560fa3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ernst=20Sj=C3=B6strand?= <ernstp@gmail.com>
+Date: Mon, 24 Jun 2019 17:15:40 +0200
+Subject: [PATCH 2581/2940] drm/amd/amdgpu: Fix amdgpu_set_pp_od_clk_voltage
+ error check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Reported by smatch:
+drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:693 amdgpu_set_pp_od_clk_voltage() error: uninitialized symbol 'ret'.
+
+Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+index b854119db5c0..36dd7b933c8e 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
+@@ -686,12 +686,12 @@ static ssize_t amdgpu_set_pp_od_clk_voltage(struct device *dev,
+ if (ret)
+ return -EINVAL;
+ } else {
+- if (adev->powerplay.pp_funcs->odn_edit_dpm_table)
++ if (adev->powerplay.pp_funcs->odn_edit_dpm_table) {
+ ret = amdgpu_dpm_odn_edit_dpm_table(adev, type,
+ parameter, parameter_size);
+-
+- if (ret)
+- return -EINVAL;
++ if (ret)
++ return -EINVAL;
++ }
+
+ if (type == PP_OD_COMMIT_DPM_TABLE) {
+ if (adev->powerplay.pp_funcs->dispatch_tasks) {
+--
+2.17.1
+