diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 04228524d160..320e9a43d4cc 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -8350,7 +8350,7 @@ static unsigned long to_ratio(u64 period, u64 runtime) | |||
8350 | #ifdef CONFIG_CGROUP_SCHED | 8350 | #ifdef CONFIG_CGROUP_SCHED |
8351 | static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime) | 8351 | static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime) |
8352 | { | 8352 | { |
8353 | struct task_group *tgi, *parent = tg->parent; | 8353 | struct task_group *tgi, *parent = tg ? tg->parent : NULL; |
8354 | unsigned long total = 0; | 8354 | unsigned long total = 0; |
8355 | 8355 | ||
8356 | if (!parent) { | 8356 | if (!parent) { |