tile: array underflow in setup_maxnodemem()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 22 Jul 2017 07:33:02 +0000 (10:33 +0300)
committerChris Metcalf <cmetcalf@mellanox.com>
Mon, 24 Jul 2017 15:24:03 +0000 (11:24 -0400)
commit637f23abca87d26e091e0d6647ec878d97d2c6cd
tree8ae6ad5029825a826fd27886abe9a722c14ba290
parent7c88f2bf7840c0ea67ac2de2e293a653f62ea134
tile: array underflow in setup_maxnodemem()

My static checker correctly complains that we should have a lower bound
on "node" to prevent an array underflow.

Fixes: 867e359b97c9 ("arch/tile: core support for Tilera 32-bit chips.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
arch/tile/kernel/setup.c