* Return an error on initialization error. This fixes CID 1566.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38461 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2008-2010, Ingo Weinhold, [email protected].
|
||||
* Copyright 2002-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Copyright 2002-2010, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
@@ -147,8 +147,10 @@ X86VMTranslationMapPAE::Init(bool kernel)
|
||||
pae_page_directory_pointer_table_entry* pdpt
|
||||
= (pae_page_directory_pointer_table_entry*)
|
||||
method->Allocate32BitPage(physicalPDPT, pdptHandle);
|
||||
if (pdpt == NULL)
|
||||
if (pdpt == NULL) {
|
||||
free(virtualPageDirs[0]);
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
// init the PDPT entries
|
||||
for (int32 i = 0; i < 4; i++) {
|
||||
|
||||
Reference in New Issue
Block a user