From 0b82cd2502bd9df61cc7cd283409226035e3b77c Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Mon, 12 Nov 2018 10:52:05 +0100 Subject: [PATCH] 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 --- src/core/bpf-devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/bpf-devices.c b/src/core/bpf-devices.c index 1a2153122a..ffa6b59a8a 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; }