Skip to content

Commit

Permalink
SystemPacketBuffer: Prevent mutex initialization if locking is not su…
Browse files Browse the repository at this point in the history
…pported
  • Loading branch information
pan- committed Apr 28, 2021
1 parent 726ded3 commit 503f4a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system/SystemPacketBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ PacketBuffer * PacketBuffer::BuildFreeList()
lHead = lCursor;
}

#if !CHIP_SYSTEM_CONFIG_NO_LOCKING
Mutex::Init(sBufferPoolMutex);
#endif

return static_cast<PacketBuffer *>(lHead);
}
Expand Down

0 comments on commit 503f4a1

Please sign in to comment.