Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
874145c1
Unverified
Commit
874145c1
authored
Mar 09, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroup2_devices: fix logic error
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
07e17859
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cgroup2_devices.c
src/lxc/cgroups/cgroup2_devices.c
+1
-1
No files found.
src/lxc/cgroups/cgroup2_devices.c
View file @
874145c1
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment