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-12 10:52:05 +01:00
parent 8724defeae
commit 0b82cd2502
1 changed files with 1 additions and 1 deletions

View File

@ -243,5 +243,5 @@ int bpf_devices_supported(void) {
return supported = 0;
}
return supported;
return supported = 1;
}