mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 15:10:56 +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))
|
if (!_ram_quota_guard().have_avail(needed_ram))
|
||||||
throw Out_of_ram();
|
throw Out_of_ram();
|
||||||
|
|
||||||
_cap_quota_guard().replenish(Cap_quota{2});
|
_cap_quota_guard().withdraw(Cap_quota{2});
|
||||||
_ram_quota_guard().replenish(needed_ram);
|
_ram_quota_guard().withdraw(needed_ram);
|
||||||
|
|
||||||
return _alloc_fn(size);
|
return _alloc_fn(size);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user