From: Dan Carpenter Date: Wed, 10 Dec 2014 23:41:31 +0000 (-0800) Subject: sh: off by one BUG_ON() in setup_bootmem_node() X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~182 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded00142740f54610b7e256201c45a3bfa5f14e5;p=pandora-kernel.git sh: off by one BUG_ON() in setup_bootmem_node() This off by one bug is harmless but it upsets the static checkers and the code is obvious so it doesn't hurt to fix it. The Smatch warning is: arch/sh/mm/numa.c:47 setup_bootmem_node() error: buffer overflow 'node_data' 1024 <= 1024 Signed-off-by: Dan Carpenter Cc: Paul Mundt Acked-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed