diff options
author | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-04-30 15:46:10 -0400 |
---|---|---|
committer | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-04-30 15:46:10 -0400 |
commit | b7566d5586a99683fa54b48bf10374e4ef5c5769 (patch) | |
tree | 3ac51e674288f6a5a865d80e2548111ee42fc941 /kernel | |
parent | a2c1032ffa1561741c7c9ebe8ac083b95142b4ee (diff) |
Fixed a bug in link_task_to_cpu; needed to check for NULL ptr.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_gsn_edf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_gsn_edf.c b/kernel/sched_gsn_edf.c index 01924d76e8..ef6ff2f57c 100644 --- a/kernel/sched_gsn_edf.c +++ b/kernel/sched_gsn_edf.c | |||
@@ -119,7 +119,8 @@ static noinline void link_task_to_cpu(struct task_struct* linked, | |||
119 | update_cpu_position(sched); | 119 | update_cpu_position(sched); |
120 | linked = tmp; | 120 | linked = tmp; |
121 | } | 121 | } |
122 | linked->rt_param.linked_on = entry->cpu; | 122 | if (linked) /* might be NULL due to swap */ |
123 | linked->rt_param.linked_on = entry->cpu; | ||
123 | } | 124 | } |
124 | entry->linked = linked; | 125 | entry->linked = linked; |
125 | update_cpu_position(entry); | 126 | update_cpu_position(entry); |