Re: [PATCH v2] acpi_table: Fix coverity defect in acpi_write_spcr

2024-11-02 Thread Tom Rini
On Wed, 30 Oct 2024 14:11:46 +0100, Patrick Rudolph wrote: > Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: > Cast serial_info.reg_offset to u64 to prevent an integer overflow when > shifted too many bits to the left. Currently this never happens as the > shift is supposed to

[PATCH v2] acpi_table: Fix coverity defect in acpi_write_spcr

2024-10-30 Thread Patrick Rudolph
Fix "Integer handling issues (SIGN_EXTENSION)" in newly added code: Cast serial_info.reg_offset to u64 to prevent an integer overflow when shifted too many bits to the left. Currently this never happens as the shift is supposed to be less than 4. Signed-off-by: Patrick Rudolph --- lib/acpi/acpi