]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bpf-devices: fix cgroup v2 devices detection
authorPavel Hrdina <phrdina@redhat.com>
Mon, 12 Nov 2018 09:52:05 +0000 (10:52 +0100)
committerPavel 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

index 1a2153122aa2971f657589049293aeb2702b19dc..ffa6b59a8ab508659c535fdee8e032228b12e785 100644 (file)
@@ -243,5 +243,5 @@ int bpf_devices_supported(void) {
                 return supported = 0;
         }
 
-        return supported;
+        return supported = 1;
 }