From 2828ed2fa13a197d94d2710d6abc6d5f023ccb83 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 10 Mar 2022 14:22:46 -0500 Subject: [PATCH] network stack: Add missing ASSERT_LOCKED_RECURSIVE. --- src/add-ons/kernel/network/stack/interfaces.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/kernel/network/stack/interfaces.cpp b/src/add-ons/kernel/network/stack/interfaces.cpp index 62268c9154..60e4a0175c 100644 --- a/src/add-ons/kernel/network/stack/interfaces.cpp +++ b/src/add-ons/kernel/network/stack/interfaces.cpp @@ -1209,6 +1209,8 @@ find_interface(const char* name) static Interface* find_interface(uint32 index) { + ASSERT_LOCKED_RECURSIVE(&sLock); + InterfaceList::Iterator iterator = sInterfaces.GetIterator(); while (Interface* interface = iterator.Next()) { if (interface->index == index)