Kernel: Put too small unused network packets back into the list

This commit is contained in:
Tim Schumacher 2022-08-19 13:06:30 +02:00 committed by Andreas Kling
parent 9e7faff181
commit df4ba7b430
Notes: sideshowbarker 2024-07-17 08:07:53 +09:00

View file

@ -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;
});