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:
Augustin Cavalier
2024-10-12 12:40:47 -04:00
parent baf30547f7
commit 23cf326b86
@@ -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;
} }