mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
Kernel: Put too small unused network packets back into the list
This commit is contained in:
committed by
Andreas Kling
parent
9e7faff181
commit
df4ba7b430
@@ -122,7 +122,7 @@ RefPtr<PacketWithTimestamp> NetworkAdapter::acquire_packet_buffer(size_t size)
|
||||
if (unused_packet->buffer->capacity() >= size)
|
||||
return unused_packet;
|
||||
|
||||
// FIXME: Shouldn't we put existing buffers that are too small back into the list?
|
||||
unused_packets.append(*unused_packet);
|
||||
return nullptr;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user