Skip to content

Commit 889da87

Browse files
committed
fix: masking pass
1 parent 2fd61cd commit 889da87

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

kernel/bpf/ir/kernpass/masking.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ static void masking_pass(struct bpf_ir_env *env, struct ir_function *fun,
8181
}
8282
}
8383

84-
static bool check_run(struct bpf_ir_env *env)
84+
static bool check_run(int err)
8585
{
86-
return env->verifier_err >= BPF_VERIFIER_ERR_41 &&
87-
env->verifier_err <= BPF_VERIFIER_ERR_44;
86+
return err >= BPF_VERIFIER_ERR_41 && err <= BPF_VERIFIER_ERR_44;
8887
}
8988

9089
const struct custom_pass_cfg bpf_ir_kern_masking_pass =

0 commit comments

Comments
 (0)