kernel/user_mutex: Add missing get after allocating contexts.
Fixes a potential KDL.
This commit is contained in:
@@ -472,6 +472,7 @@ struct UserMutexContextFetcher {
|
|||||||
Team* team = thread_get_current_thread()->team;
|
Team* team = thread_get_current_thread()->team;
|
||||||
team->Lock();
|
team->Lock();
|
||||||
fInitStatus = allocate_team_user_mutex_context(team);
|
fInitStatus = allocate_team_user_mutex_context(team);
|
||||||
|
fContext = team->user_mutex_context;
|
||||||
team->Unlock();
|
team->Unlock();
|
||||||
if (fInitStatus != B_OK)
|
if (fInitStatus != B_OK)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user