Re: [PATCH v1 01/17] ACPI: processor: idle: Expand _LPI package sanity checks

"lihuisong (C)" <[email protected]>
Newsgroups org.kernel.vger.linux-acpi,org.kernel.vger.linux-pm
Message-ID <[email protected]>
On 7/9/2026 8:30 PM, Rafael J. Wysocki wrote:
> From: "Rafael J. Wysocki" <[email protected]>
>
> The _LPI package sanity checks in acpi_processor_evaluate_lpi() miss
> a couple of things, so expand them by adding a buffer size check
> before retrieving a struct acpi_power_register from it (and skip the
> given state if the buffer is not large enough to hold a register
> structure) and making the function avoid copying the state description
> from the ACPI table if there are too few elements in the package
> supposed to hold it.
>
> While at it, relocate and rephrase a comment about skipping _LPI state
> package elements [7-8].
>
> Fixes: a36a7fecfe60 ("ACPI / processor_idle: Add support for Low Power Idle(LPI) states")
> Signed-off-by: Rafael J. Wysocki <[email protected]>
> ---
Acked-by: Huisong Li <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.