mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
usb_net_drv: ensure freeing packets in destructor
Ref genodelabs/genode#4795
This commit is contained in:
parent
3c3e45746a
commit
19e2b5b8b2
@ -182,6 +182,11 @@ Driver::Device::~Device()
|
||||
{
|
||||
driver.devices.remove(&le);
|
||||
if (udev) unregister_device();
|
||||
|
||||
while (usb.source()->ack_avail()) {
|
||||
Usb::Packet_descriptor p = usb.source()->get_acked_packet();
|
||||
usb.source()->release_packet(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user