diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/net/bpf_jit_comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c index 55423d8be580..9afb9d602f84 100644 --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c | |||
@@ -227,7 +227,7 @@ static inline void reg_set_seen(struct bpf_jit *jit, u32 b1) | |||
227 | ({ \ | 227 | ({ \ |
228 | /* Branch instruction needs 6 bytes */ \ | 228 | /* Branch instruction needs 6 bytes */ \ |
229 | int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\ | 229 | int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\ |
230 | _EMIT6(op1 | reg(b1, b2) << 16 | rel, op2 | mask); \ | 230 | _EMIT6(op1 | reg(b1, b2) << 16 | (rel & 0xffff), op2 | mask); \ |
231 | REG_SET_SEEN(b1); \ | 231 | REG_SET_SEEN(b1); \ |
232 | REG_SET_SEEN(b2); \ | 232 | REG_SET_SEEN(b2); \ |
233 | }) | 233 | }) |