os: packet_allocator needs size for free

Unlike the previous return value of
`Genode::Packet_allocator::need_size_for_free()` indicated, it does need
the size of the object it has to free to work properly.
This commit is contained in:
Stefan Kalkowski 2024-03-27 16:35:55 +01:00 committed by Christian Helmuth
parent 84285881f3
commit 2f0fe562ec

View File

@ -184,7 +184,7 @@ class Genode::Packet_allocator : public Genode::Range_allocator
** Dummies **
*************/
bool need_size_for_free() const override { return false; }
bool need_size_for_free() const override { return true; }
void free(void *) override { }
size_t overhead(size_t) const override { return 0;}
size_t avail() const override { return 0; }