summaryrefslogtreecommitdiff
path: root/fs/msdos/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPengjie Zhang <zhangpengjie2@huawei.com>2026-03-11 15:13:34 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-03-11 12:34:02 +0100
commitbe473f0591f183990a998edee02161b319047eaa (patch)
tree04ec69a0437d0c45bc689130b8e3274e43415bbc /fs/msdos/git@git.tavy.me:linux.git
parent8505bfb4e4eca28ef1b20d3369435ec2d6a125c6 (diff)
ACPI: CPPC: Fix uninitialized ref variable in cppc_get_perf_caps()
Commit 8505bfb4e4ec ("ACPI: CPPC: Move reference performance to capabilities") introduced a logical error when retrieving the reference performance. On platforms lacking the reference performance register, the fallback logic leaves the local 'ref' variable uninitialized (0). This causes the subsequent sanity check to incorrectly return -EFAULT, breaking amd_pstate initialization. Fix this by assigning 'ref = nom' in the fallback path. Fixes: 8505bfb4e4ec ("ACPI: CPPC: Move reference performance to capabilities") Reported-by: Nathan Chancellor <nathan@kernel.org> Closes: https://lore.kernel.org/all/20260310003026.GA2639793@ax162/ Tested-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com> [ rjw: Subject tweak ] Link: https://patch.msgid.link/20260311071334.1494960-1-zhangpengjie2@huawei.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/msdos/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions