diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2014-05-14 21:02:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-14 21:02:18 +0000 |
commit | 6897b7b8b95beae120fd53e6fd15921d6420bea7 (patch) | |
tree | 7d0da1ce701c7dac1a59e1eda1fc2616306e9bbb /linker/linker_allocator.cpp | |
parent | fbd9dcadc8e25b22c99596462669017b9b1b4a7c (diff) | |
parent | 1079406cab09090cc11e26d4ac2f1ba9c4930cdb (diff) | |
download | android_bionic-6897b7b8b95beae120fd53e6fd15921d6420bea7.tar.gz android_bionic-6897b7b8b95beae120fd53e6fd15921d6420bea7.tar.bz2 android_bionic-6897b7b8b95beae120fd53e6fd15921d6420bea7.zip |
Merge "Fix for linker allocator"
Diffstat (limited to 'linker/linker_allocator.cpp')
-rw-r--r-- | linker/linker_allocator.cpp | 2 |
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; } |