projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9528117
)
metag: off by one in setup_bootmem_node()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:45:33 +0000
(12:45 +0300)
committer
James Hogan
<james.hogan@imgtec.com>
Fri, 8 Nov 2013 11:23:00 +0000
(11:23 +0000)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/metag/mm/numa.c
b/arch/metag/mm/numa.c
index 9ae578c9b620b57182c090bd32db18dd3d69f3ff..b172aa45fcf8201934880a0ac41cf8461ca4a435 100644
(file)
--- a/
arch/metag/mm/numa.c
+++ b/
arch/metag/mm/numa.c
@@
-34,7
+34,7
@@
void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end)
unsigned long pgdat_paddr;
/* Don't allow bogus node assignment */
- BUG_ON(nid > MAX_NUMNODES || nid <= 0);
+ BUG_ON(nid >
=
MAX_NUMNODES || nid <= 0);
start_pfn = start >> PAGE_SHIFT;
end_pfn = end >> PAGE_SHIFT;