USB: Properly report initialization status in Stack::InitCheck().
Should fix one of the new KDLs in #19117 due to the PhysicalMemoryAllocator failing to initialize.
This commit is contained in:
@@ -39,7 +39,6 @@ Stack::Stack()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
size_t objectArraySize = fObjectMaxCount * sizeof(Object *);
|
size_t objectArraySize = fObjectMaxCount * sizeof(Object *);
|
||||||
fObjectArray = (Object **)malloc(objectArraySize);
|
fObjectArray = (Object **)malloc(objectArraySize);
|
||||||
if (fObjectArray == NULL) {
|
if (fObjectArray == NULL) {
|
||||||
@@ -90,7 +89,7 @@ Stack::~Stack()
|
|||||||
status_t
|
status_t
|
||||||
Stack::InitCheck()
|
Stack::InitCheck()
|
||||||
{
|
{
|
||||||
return B_OK;
|
return (fExploreThread >= 0) ? B_OK : B_NO_INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user