diff options
| author | Li Chen <chenl311@chinatelecom.cn> | 2025-06-20 16:13:07 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-20 19:41:44 +0300 |
| commit | 027cf5ea4e09be9e66a9915e953f14bcd23e47ff (patch) | |
| tree | 02532175eb227ce4988bde13428909816366f5fb /net/unix/sysctl_net_unix.c | |
| parent | 32830e9f24f6251e4a276bfbbc5ea448e7a0d4dc (diff) | |
| download | linux-027cf5ea4e09be9e66a9915e953f14bcd23e47ff.tar.xz | |
ACPI: Return -ENODEV from acpi_parse_spcr() when SPCR support is disabled
commit b9f58d3572a8e1ef707b941eae58ec4014b9269d upstream.
If CONFIG_ACPI_SPCR_TABLE is disabled, acpi_parse_spcr()
currently returns 0, which may incorrectly suggest that
SPCR parsing was successful. This patch changes the behavior
to return -ENODEV to clearly indicate that SPCR support
is not available.
This prepares the codebase for future changes that depend
on acpi_parse_spcr() failure detection, such as suppressing
misleading console messages.
Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/20250620131309.126555-2-me@linux.beauty
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
