1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:38:13 +00:00

Kernel: Protect the list of unused network packets with a Spinlock

This commit is contained in:
Tim Schumacher 2022-08-19 10:41:38 +02:00 committed by Andreas Kling
parent 766bf5c89e
commit 9e7faff181
2 changed files with 17 additions and 17 deletions

View file

@ -109,7 +109,7 @@ private:
PacketList m_packet_queue;
size_t m_packet_queue_size { 0 };
PacketList m_unused_packets;
SpinlockProtected<PacketList> m_unused_packets;
NonnullOwnPtr<KString> m_name;
u32 m_packets_in { 0 };
u32 m_bytes_in { 0 };