powerpc/numa: Avoid possible reference beyond prop. length in find_min_common_depth()
authorMilton Miller <miltonm@bga.com>
Thu, 8 Jan 2009 02:19:43 +0000 (02:19 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Feb 2009 02:37:58 +0000 (13:37 +1100)
commit20fcefe5a0a354b0cc78ec4634d9f72dab5f1ee9
tree4ee7d4097a4e88f885cdae12748bb31779e25e5b
parent6a4d7a90fc452171eabb4b5b23ab780451ae7f5b
powerpc/numa: Avoid possible reference beyond prop. length in find_min_common_depth()

find_min_common_depth() was checking the property length incorrectly.
The value is in bytes not cells, and it is using the second entry.

Signed-off-By: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c