summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-06-09 22:18:24 +0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-06-09 22:29:12 +0400
commitbe6ae382dc153da51cf066c8dd523aa955f02531 (patch)
tree5fce94b6924dbfd75cf8bdcf6253441b7b3d9b92 /arch/xtensa
parent17290231df16eeee5dfc198dbf5ee4b419996dcd (diff)
downloadlinux-stable-be6ae382dc153da51cf066c8dd523aa955f02531.tar.gz
linux-stable-be6ae382dc153da51cf066c8dd523aa955f02531.tar.bz2
linux-stable-be6ae382dc153da51cf066c8dd523aa955f02531.zip
xtensa: fix sysmem reservation at the end of existing block
When sysmem reservation occurs exactly at the end of an existing block that block is deleted, because it is incorrectly included in the range of memblocks to remove. Fix that by skipping such block. Cc: stable@vger.kernel.org Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c
index 4224256bb215..77ed20209ca5 100644
--- a/arch/xtensa/mm/init.c
+++ b/arch/xtensa/mm/init.c
@@ -191,7 +191,7 @@ int __init mem_reserve(unsigned long start, unsigned long end, int must_exist)
return -EINVAL;
}
- if (it && start - it->start < bank_sz) {
+ if (it && start - it->start <= bank_sz) {
if (start == it->start) {
if (end - it->start < bank_sz) {
it->start = end;