lkml.org 
[lkml]   [2014]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRE: [sched] BUG: unable to handle kernel paging request at 093cd001
Date
Hi,

Does this patch solve your issue ?

A null line is missing at the end of the array for NUMA case.
My test was passed thanks to a null data after the allocated array

regards,
Vincent
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4ea7b3f..941da33 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6232,7 +6232,7 @@ static void sched_init_numa(void)
}

/* Compute default topology size */
- for (i = 0; sched_domain_topology[i].mask; i++);
+ for (i = 1; sched_domain_topology[i].mask; i++);

tl = kzalloc((i + level) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
--
1.9.1


\
 
 \ /
  Last update: 2014-05-12 13:21    [W:0.051 / U:1.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site