summaryrefslogtreecommitdiff
path: root/arch/riscv/lib/interrupts.c
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2024-10-28 09:08:35 +0100
committerTom Rini <trini@konsulko.com>2024-10-28 16:50:26 -0600
commite1c3c720e780eed6647796d69dca6184640234a5 (patch)
tree1378ae3213921b5c98244b089ac9526006ec4fa3 /arch/riscv/lib/interrupts.c
parentf2533fb04893467cc64fd5e31158a8c861c0a883 (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>
Diffstat (limited to 'arch/riscv/lib/interrupts.c')
0 files changed, 0 insertions, 0 deletions