aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2025-02-03 10:06:00 +0000
committerPalmer Dabbelt <[email protected]>2025-02-14 21:06:31 +0000
commit599c44cd21f4967774e0acf58f734009be4aea9a (patch)
tree31e4ad9896dbc9bbf3dde647801b53a9ca7db44c /net/switchdev/switchdev.c
parentriscv/atomic: Do proper sign extension also for unsigned in arch_cmpxchg (diff)
downloadkernel-599c44cd21f4967774e0acf58f734009be4aea9a.tar.gz
kernel-599c44cd21f4967774e0acf58f734009be4aea9a.zip
riscv/futex: sign extend compare value in atomic cmpxchg
Make sure the compare value in the lr/sc loop is sign extended to match what lr.w does. Fortunately, due to the compiler keeping the register contents sign extended anyway the lack of the explicit extension didn't result in wrong code so far, but this cannot be relied upon. Fixes: b90edb33010b ("RISC-V: Add futex support.") Signed-off-by: Andreas Schwab <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Reviewed-by: Björn Töpel <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions