--- kernel/sched/core.c | 3 +++ 1 file changed, 3 insertions(+) Index: linux-2.6/kernel/sched/core.c =================================================================== --- linux-2.6.orig/kernel/sched/core.c +++ linux-2.6/kernel/sched/core.c @@ -5737,6 +5737,9 @@ static int __sdt_alloc(const struct cpum if (!sgp) return -ENOMEM; + /* avoid divide-by-zero in sg_capacity() */ + sgp->power_orig = 1; + *per_cpu_ptr(sdd->sgp, j) = sgp; } }