Commit af3fbe44 authored by Charlie Jenkins's avatar Charlie Jenkins Committed by Lee Jones
Browse files

UPSTREAM: riscv: cpufeature: Fix extension subset checking



This loop is supposed to check if ext->subset_ext_ids[j] is valid, rather
than if ext->subset_ext_ids[i] is valid, before setting the extension
id ext->subset_ext_ids[j] in isainfo->isa.

Bug: 254441685
Signed-off-by: default avatarCharlie Jenkins <charlie@rivosinc.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reviewed-by: default avatarAlexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Fixes: 0d8295ed ("riscv: add ISA extension parsing for scalar crypto")
Link: https://lore.kernel.org/r/20240502-cpufeature_fixes-v4-2-b3d1a088722d@rivosinc.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
(cherry picked from commit e67e98ee)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I6c1bd27bf9c040963c014e1d0320d07402262224
parent 412ee5bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment