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:Charlie Jenkins <charlie@rivosinc.com> Reviewed-by:
Conor Dooley <conor.dooley@microchip.com> Reviewed-by:
Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by:
Andrew 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:
Palmer Dabbelt <palmer@rivosinc.com> (cherry picked from commit e67e98ee) Signed-off-by:
Lee Jones <joneslee@google.com> Change-Id: I6c1bd27bf9c040963c014e1d0320d07402262224
Loading
Please sign in to comment