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 <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2018-11-13 12:58:05 +01:00
parent 8724defeae
commit 0b82cd2502
+1 -1
View File
@@ -243,5 +243,5 @@ int bpf_devices_supported(void) {
return supported = 0;
}
return supported;
return supported = 1;
}