diff options
-rw-r--r-- | kernel/cgroup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index d57318950076..3fe02c152799 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -246,6 +246,9 @@ static int cgroup_addrm_files(struct cgroup_subsys_state *css, | |||
246 | */ | 246 | */ |
247 | static bool cgroup_ssid_enabled(int ssid) | 247 | static bool cgroup_ssid_enabled(int ssid) |
248 | { | 248 | { |
249 | if (CGROUP_SUBSYS_COUNT == 0) | ||
250 | return false; | ||
251 | |||
249 | return static_key_enabled(cgroup_subsys_enabled_key[ssid]); | 252 | return static_key_enabled(cgroup_subsys_enabled_key[ssid]); |
250 | } | 253 | } |
251 | 254 | ||