projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8724def
)
bpf-devices: fix cgroup v2 devices detection
author
Pavel Hrdina
<phrdina@redhat.com>
Mon, 12 Nov 2018 09:52:05 +0000
(10:52 +0100)
committer
Pavel Hrdina
<phrdina@redhat.com>
Tue, 13 Nov 2018 11:58:05 +0000
(12:58 +0100)
If cgroup v2 bpf devices is supported we need to return 1, not -1.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/core/bpf-devices.c
patch
|
blob
|
history
diff --git
a/src/core/bpf-devices.c
b/src/core/bpf-devices.c
index 1a2153122aa2971f657589049293aeb2702b19dc..ffa6b59a8ab508659c535fdee8e032228b12e785 100644
(file)
--- a/
src/core/bpf-devices.c
+++ b/
src/core/bpf-devices.c
@@
-243,5
+243,5
@@
int bpf_devices_supported(void) {
return supported = 0;
}
- return supported;
+ return supported
= 1
;
}