From fd709b1a4d93cf4a62a79d2a0ed31f3c4fd6783e Mon Sep 17 00:00:00 2001 From: Milton Miller Date: Thu, 8 Jan 2009 02:19:43 +0000 Subject: [PATCH] --- yaml --- r: 138432 b: refs/heads/master c: 20fcefe5a0a354b0cc78ec4634d9f72dab5f1ee9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/powerpc/mm/numa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c20a4a265c0d..b7396aecfa67 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6a4d7a90fc452171eabb4b5b23ab780451ae7f5b +refs/heads/master: 20fcefe5a0a354b0cc78ec4634d9f72dab5f1ee9 diff --git a/trunk/arch/powerpc/mm/numa.c b/trunk/arch/powerpc/mm/numa.c index 7393bd76d698..e26d5e5c22be 100644 --- a/trunk/arch/powerpc/mm/numa.c +++ b/trunk/arch/powerpc/mm/numa.c @@ -289,7 +289,7 @@ static int __init find_min_common_depth(void) ref_points = of_get_property(rtas_root, "ibm,associativity-reference-points", &len); - if ((len >= 1) && ref_points) { + if ((len >= 2 * sizeof(unsigned int)) && ref_points) { depth = ref_points[1]; } else { dbg("NUMA: ibm,associativity-reference-points not found.\n");