aboutsummaryrefslogtreecommitdiffstats
path: root/linker/linker_allocator.cpp
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2014-05-14 12:52:57 -0700
committerDmitriy Ivanov <dimitry@google.com>2014-05-14 12:52:57 -0700
commit1079406cab09090cc11e26d4ac2f1ba9c4930cdb (patch)
tree1990287fea9a5cc28410dfa1bc3ff3741ad1cfc2 /linker/linker_allocator.cpp
parentc6b5834ceb3df72608a8fe3526a2db337e504512 (diff)
downloadandroid_bionic-1079406cab09090cc11e26d4ac2f1ba9c4930cdb.tar.gz
android_bionic-1079406cab09090cc11e26d4ac2f1ba9c4930cdb.tar.bz2
android_bionic-1079406cab09090cc11e26d4ac2f1ba9c4930cdb.zip
Fix for linker allocator
Change-Id: I18a3f1a8515657f0deb69266184fb516a27f90e8
Diffstat (limited to 'linker/linker_allocator.cpp')
-rw-r--r--linker/linker_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker_allocator.cpp b/linker/linker_allocator.cpp
index 60ce1ea47..573809075 100644
--- a/linker/linker_allocator.cpp
+++ b/linker/linker_allocator.cpp
@@ -117,8 +117,8 @@ LinkerAllocatorPage* LinkerBlockAllocator::find_page(void* block) {
}
LinkerAllocatorPage* page = page_list_;
- const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page);
while (page != nullptr) {
+ const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page);
if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) {
return page;
}