aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorTiezhu Yang <[email protected]>2023-07-28 10:30:42 +0800
committerHuacai Chen <[email protected]>2023-07-28 10:30:42 +0800
commit4eece7e6de94d833c8aeed2f438faf487cbf94ff (patch)
treea2ca0dd9d2009c06933d655da7331bcbab28fe0f /lib/mpi/mpiutil.c
parentde0e30bee86d0f99c696a1fea34474e556a946ec (diff)
LoongArch: BPF: Fix check condition to call lu32id in move_imm()
As the code comment says, the initial aim is to reduce one instruction in some corner cases, if bit[51:31] is all 0 or all 1, no need to call lu32id. That is to say, it should call lu32id only if bit[51:31] is not all 0 and not all 1. The current code always call lu32id, the result is right but the logic is unexpected and wrong, fix it. Cc: [email protected] # 6.1 Fixes: 5dc615520c4d ("LoongArch: Add BPF JIT support") Reported-by: Colin King (gmail) <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions