mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-14 08:16:28 +00:00
usb: correct client-quota tracking of DMA buffers
Fix genodelabs/genode#5465
This commit is contained in:
parent
f081306eeb
commit
1bfa53876f
@ -610,8 +610,8 @@ class Session_component
|
||||
if (!_ram_quota_guard().have_avail(needed_ram))
|
||||
throw Out_of_ram();
|
||||
|
||||
_cap_quota_guard().replenish(Cap_quota{2});
|
||||
_ram_quota_guard().replenish(needed_ram);
|
||||
_cap_quota_guard().withdraw(Cap_quota{2});
|
||||
_ram_quota_guard().withdraw(needed_ram);
|
||||
|
||||
return _alloc_fn(size);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user