aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-26 22:55:42 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-26 22:55:42 +0200
commitbae9f1e703499ad6db9b218b75e50df39a04a252 (patch)
treecfc89258467d645e60a055de8dc8ce2b8b33cd34
parentf0e1e4d6b5f9855e5ef4a4c7a692bf77dd81b8ce (diff)
downloadkernel-bae9f1e703499ad6db9b218b75e50df39a04a252.tar.xz
kernel-bae9f1e703499ad6db9b218b75e50df39a04a252.zip
kapi/bus: lock correct mutex
-rw-r--r--kernel/kapi/devices/bus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kapi/devices/bus.cpp b/kernel/kapi/devices/bus.cpp
index 2b94e486..1398c781 100644
--- a/kernel/kapi/devices/bus.cpp
+++ b/kernel/kapi/devices/bus.cpp
@@ -108,7 +108,7 @@ namespace kapi::devices
{
auto grandchildren = kstd::vector<kstd::shared_ptr<kapi::devices::device>>{};
{
- auto guard = kstd::lock_guard{m_lock};
+ auto guard = kstd::lock_guard{child_bus->m_lock};
// NOTE: this could be more efficient one vector::assign is implemented.
grandchildren = kstd::vector(child_bus->m_devices.begin(), child_bus->m_devices.end());
}