diff options
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r-- | arch/powerpc/mm/numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 7393bd76d698..e26d5e5c22be 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -289,7 +289,7 @@ static int __init find_min_common_depth(void) | |||
289 | ref_points = of_get_property(rtas_root, | 289 | ref_points = of_get_property(rtas_root, |
290 | "ibm,associativity-reference-points", &len); | 290 | "ibm,associativity-reference-points", &len); |
291 | 291 | ||
292 | if ((len >= 1) && ref_points) { | 292 | if ((len >= 2 * sizeof(unsigned int)) && ref_points) { |
293 | depth = ref_points[1]; | 293 | depth = ref_points[1]; |
294 | } else { | 294 | } else { |
295 | dbg("NUMA: ibm,associativity-reference-points not found.\n"); | 295 | dbg("NUMA: ibm,associativity-reference-points not found.\n"); |