Skip to content
Commit 1d24fb36 authored by zhuangfeiran@ict.ac.cn's avatar zhuangfeiran@ict.ac.cn Committed by David S. Miller
Browse files

x86 bpf_jit: fix a bug in emitting the 16-bit immediate operand of AND



When K >= 0xFFFF0000, AND needs the two least significant bytes of K as
its operand, but EMIT2() gives it the least significant byte of K and
0x2. EMIT() should be used here to replace EMIT2().

Signed-off-by: default avatarFeiran Zhuang <zhuangfeiran@ict.ac.cn>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d26bb10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment