mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-16 07:27:35 +00:00
core: Fix off-by-one in quota check
The check was one byte too rigid. ;-)
This commit is contained in:
parent
90aa4ef6b5
commit
094c5211fd
@ -121,7 +121,7 @@ Ram_dataspace_capability Ram_session_component::alloc(size_t ds_size, bool cache
|
||||
* meta data of the dataspace to be created - therefore, we add
|
||||
* the slab block size here.
|
||||
*/
|
||||
if (used_quota() + SBS + ds_size >= _quota_limit) {
|
||||
if (used_quota() + SBS + ds_size > _quota_limit) {
|
||||
|
||||
PWRN("Quota exceeded: %s", _label);
|
||||
PWRN(" memory for slab: %zd", _ds_slab.consumed());
|
||||
|
Loading…
x
Reference in New Issue
Block a user