1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-09-07 09:45:10 +03:00

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

View File

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