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
|
* meta data of the dataspace to be created - therefore, we add
|
||||||
* the slab block size here.
|
* 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("Quota exceeded: %s", _label);
|
||||||
PWRN(" memory for slab: %zd", _ds_slab.consumed());
|
PWRN(" memory for slab: %zd", _ds_slab.consumed());
|
||||||
|
|
Loading…
Reference in New Issue