diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1673-drm-amd-powerplay-Fix-double-unlock-bug-in-smu_sys_s.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1673-drm-amd-powerplay-Fix-double-unlock-bug-in-smu_sys_s.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1673-drm-amd-powerplay-Fix-double-unlock-bug-in-smu_sys_s.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1673-drm-amd-powerplay-Fix-double-unlock-bug-in-smu_sys_s.patch new file mode 100644 index 00000000..00fbb99d --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1673-drm-amd-powerplay-Fix-double-unlock-bug-in-smu_sys_s.patch @@ -0,0 +1,34 @@ +From db91bee9524e00a65f89d73e55c9761028f42eab Mon Sep 17 00:00:00 2001 +From: Dan Carpenter <dan.carpenter@oracle.com> +Date: Thu, 21 Mar 2019 09:28:22 +0300 +Subject: [PATCH 1673/2940] drm/amd/powerplay: Fix double unlock bug in + smu_sys_set_pp_table() + +We already unlocked a few lines earlier so this code unlocks twice on +the success path. + +Fixes: 289921b03fe5e ("drm/amd/powerplay: implement sysfs of pp_table for smu11 (v2)") +Reviewed-by: Huang Rui <ray.huang@amd.com> +Reviewed-by: Kevin Wang <kevin1.wang@amd.com> +Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +index 00b7c885772b..7e8c74da6a74 100644 +--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c ++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +@@ -187,6 +187,8 @@ int smu_sys_set_pp_table(struct smu_context *smu, void *buf, size_t size) + if (ret) + pr_info("smu reset failed, ret = %d\n", ret); + ++ return ret; ++ + failed: + mutex_unlock(&smu->mutex); + return ret; +-- +2.17.1 + |