cgroup2_devices: fix logic error

parent 07e17859
...@@ -348,7 +348,7 @@ int bpf_program_cgroup_attach(struct bpf_program *prog, int type, ...@@ -348,7 +348,7 @@ int bpf_program_cgroup_attach(struct bpf_program *prog, int type,
if (!prog) if (!prog)
return ret_set_errno(-1, EINVAL); return ret_set_errno(-1, EINVAL);
if (flags & ~(BPF_F_ALLOW_OVERRIDE, BPF_F_ALLOW_MULTI)) if (flags & ~(BPF_F_ALLOW_OVERRIDE | BPF_F_ALLOW_MULTI))
return log_error_errno(-1, EINVAL, "Invalid flags for bpf program"); return log_error_errno(-1, EINVAL, "Invalid flags for bpf program");
if (prog->attached_path) { if (prog->attached_path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment