core: Fix off-by-one in quota check

The check was one byte too rigid. ;-)
This commit is contained in:
Norman Feske 2013-10-08 10:38:15 +02:00
parent 90aa4ef6b5
commit 094c5211fd
1 changed files with 1 additions and 1 deletions

View File

@ -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());