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 <dan.carpenter@oracle.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
||
|---|---|---|
| .. | ||
| alignment.c | ||
| asids-debugfs.c | ||
| cache-debugfs.c | ||
| cache-sh2.c | ||
| cache-sh2a.c | ||
| cache-sh3.c | ||
| cache-sh4.c | ||
| cache-sh5.c | ||
| cache-sh7705.c | ||
| cache-shx3.c | ||
| cache.c | ||
| consistent.c | ||
| extable_32.c | ||
| extable_64.c | ||
| fault.c | ||
| flush-sh4.c | ||
| gup.c | ||
| hugetlbpage.c | ||
| init.c | ||
| ioremap.c | ||
| ioremap_fixed.c | ||
| Kconfig | ||
| kmap.c | ||
| Makefile | ||
| mmap.c | ||
| nommu.c | ||
| numa.c | ||
| pgtable.c | ||
| pmb.c | ||
| sram.c | ||
| tlb-debugfs.c | ||
| tlb-pteaex.c | ||
| tlb-sh3.c | ||
| tlb-sh4.c | ||
| tlb-sh5.c | ||
| tlb-urb.c | ||
| tlbex_32.c | ||
| tlbex_64.c | ||
| tlbflush_32.c | ||
| tlbflush_64.c | ||
| uncached.c | ||