]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: cpufeature: use bitmap_equal() instead of memcmp()
authorClément Léger <cleger@rivosinc.com>
Mon, 10 Feb 2025 15:56:14 +0000 (16:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 17:25:45 +0000 (18:25 +0100)
commita3c5eb88f0babe559425e919a18ebb4f28f45ab1
tree18cce2345854cfc1a05b1c5fb3dd74a708ff42cc
parent45233962ea51aed6cfb540277e80bfd9c13dc0e6
riscv: cpufeature: use bitmap_equal() instead of memcmp()

commit c6ec1e1b078d8e2ecd075e46db6197a14930a3fc upstream.

Comparison of bitmaps should be done using bitmap_equal(), not memcmp(),
use the former one to compare isa bitmaps.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Fixes: 625034abd52a8c ("riscv: add ISA extensions validation callback")
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250210155615.1545738-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/kernel/cpufeature.c