mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel: Put too small unused network packets back into the list
This commit is contained in:
parent
9e7faff181
commit
df4ba7b430
Notes:
sideshowbarker
2024-07-17 08:07:53 +09:00
Author: https://github.com/timschumi
Commit: df4ba7b430
Pull-request: https://github.com/SerenityOS/serenity/pull/14920
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ RefPtr<PacketWithTimestamp> NetworkAdapter::acquire_packet_buffer(size_t size)
|
||||||
if (unused_packet->buffer->capacity() >= size)
|
if (unused_packet->buffer->capacity() >= size)
|
||||||
return unused_packet;
|
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;
|
return nullptr;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue