From: Pavel Hrdina Date: Mon, 12 Nov 2018 09:52:05 +0000 (+0100) Subject: bpf-devices: fix cgroup v2 devices detection X-Git-Tag: v240~335^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b82cd2502bd9df61cc7cd283409226035e3b77c;p=thirdparty%2Fsystemd.git bpf-devices: fix cgroup v2 devices detection If cgroup v2 bpf devices is supported we need to return 1, not -1. Signed-off-by: Pavel Hrdina --- diff --git a/src/core/bpf-devices.c b/src/core/bpf-devices.c index 1a2153122aa..ffa6b59a8ab 100644 --- 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; }