commit | 7bdd82c90ef99c184afdd8d7fce25eef75a8f6dc | [log] [tgz] |
---|---|---|
author | Patrick Rudolph <patrick.rudolph@9elements.com> | Mon Oct 28 09:08:35 2024 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Oct 28 16:50:26 2024 -0600 |
tree | 1378ae3213921b5c98244b089ac9526006ec4fa3 | |
parent | 50f0c5464ca4c4fe1f4e7c25ca17864c2fadff84 [diff] |
acpi_table: Fix coverity defect in acpi_write_spcr 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 <patrick.rudolph@9elements.com> Reviewed-by: Moritz Fischer <moritzf@google.com>