From: Dan Carpenter Date: Sat, 22 Jul 2017 07:33:02 +0000 (+0300) Subject: tile: array underflow in setup_maxnodemem() X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b2148eda63b42e082259aaf1622c9ae2d53ac8;p=pandora-kernel.git tile: array underflow in setup_maxnodemem() commit 637f23abca87d26e091e0d6647ec878d97d2c6cd upstream. 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 Signed-off-by: Chris Metcalf [bwh: Backported to 3.2: keep maxnodemem_mb as long] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed