diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/bpf/test_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_sysctl.c b/tools/testing/selftests/bpf/test_sysctl.c index a3bebd7c68dd..908f327839d5 100644 --- a/tools/testing/selftests/bpf/test_sysctl.c +++ b/tools/testing/selftests/bpf/test_sysctl.c | |||
@@ -100,7 +100,7 @@ static struct sysctl_test tests[] = { | |||
100 | .descr = "ctx:write sysctl:write read ok", | 100 | .descr = "ctx:write sysctl:write read ok", |
101 | .insns = { | 101 | .insns = { |
102 | /* If (write) */ | 102 | /* If (write) */ |
103 | BPF_LDX_MEM(BPF_B, BPF_REG_7, BPF_REG_1, | 103 | BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_1, |
104 | offsetof(struct bpf_sysctl, write)), | 104 | offsetof(struct bpf_sysctl, write)), |
105 | BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2), | 105 | BPF_JMP_IMM(BPF_JNE, BPF_REG_7, 1, 2), |
106 | 106 | ||