Commit 89c8b25c authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by liwei
Browse files

ACPI: CPPC: Fix up I/O port access in cpc_read()

mainline inclusion
from mainline-v5.17-rc1
commit 5f51c7ce
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9QRD6
CVE: CVE-2024-35995

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f51c7ce1dc36565296b3ef342585f70ec72a2a9



--------------------------------

The code as currently implemented does not work on big endian systems,
so fix it up.

Fixes: a2c8f92b ("ACPI: CPPC: Implement support for SystemIO registers")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/linux-acpi/20220111092928.GA24968@kili/


Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarliwei <liwei728@huawei.com>
parent 8639e3b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment