metag: off by one in setup_bootmem_node()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:45:33 +0000 (12:45 +0300)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 8 Nov 2013 11:23:00 +0000 (11:23 +0000)
commit51387306b5c2b0c9eb1e2556de1b37267bb2b583
tree45e2ae361cd4b2006a8110351e9ce54f40a2cd20
parent95281171a713f4d32f1a044b937563ec7776ccfe
metag: off by one in setup_bootmem_node()

If "nid == MAX_NUMNODES" then we write beyond the end of the node_data[]
array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/mm/numa.c