From 3c05f06edb609dcf9b369fb76a09408ce13403d6 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 23 Mar 2026 14:34:10 -0400 Subject: [PATCH] kernel/user_mutex: Add missing get after allocating contexts. Fixes a potential KDL. --- src/system/kernel/locks/user_mutex.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/system/kernel/locks/user_mutex.cpp b/src/system/kernel/locks/user_mutex.cpp index c430008e59..055ba459ea 100644 --- a/src/system/kernel/locks/user_mutex.cpp +++ b/src/system/kernel/locks/user_mutex.cpp @@ -472,6 +472,7 @@ struct UserMutexContextFetcher { Team* team = thread_get_current_thread()->team; team->Lock(); fInitStatus = allocate_team_user_mutex_context(team); + fContext = team->user_mutex_context; team->Unlock(); if (fInitStatus != B_OK) return;