projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f63e78
)
sparc64: Fix overshoot in nid_range().
author
David S. Miller
<davem@davemloft.net>
Thu, 14 Aug 2008 08:41:39 +0000
(
01:41
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Aug 2008 08:41:39 +0000
(
01:41
-0700)
If 'start' does not begin on a page boundary, we can overshoot
past 'end'.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/init.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc64/mm/init.c
b/arch/sparc64/mm/init.c
index 217de3ea29e842cff4c0eff6be2b82c5a13f25fe..64d8e7623e0d52eb00cca50a242ec6b023d2a818 100644
(file)
--- a/
arch/sparc64/mm/init.c
+++ b/
arch/sparc64/mm/init.c
@@
-796,6
+796,9
@@
static unsigned long nid_range(unsigned long start, unsigned long end,
start += PAGE_SIZE;
}
+ if (start > end)
+ start = end;
+
return start;
}
#else