mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 17:01:07 +00:00
parent
5820ad8309
commit
298f317f44
@ -146,10 +146,8 @@ class Genode::Account
|
||||
throw Unrelated_account();
|
||||
|
||||
/* make sure to stay within the initial limit */
|
||||
if (amount.value > _transferrable_quota().value) {
|
||||
error(_label, ": attempt to transfer initial quota");
|
||||
if (amount.value > _transferrable_quota().value)
|
||||
throw Limit_exceeded();
|
||||
}
|
||||
|
||||
/* downgrade from this account */
|
||||
if (!_quota_guard.try_downgrade(amount))
|
||||
|
@ -147,8 +147,6 @@ void Pd_session_component::transfer_quota(Capability<Pd_session> pd_cap,
|
||||
warning("attempt to transfer cap quota to unrelated PD session");
|
||||
throw Invalid_session(); }
|
||||
catch (Account<Cap_quota>::Limit_exceeded) {
|
||||
warning("cap limit (", *_cap_account, ") exceeded "
|
||||
"during transfer_quota(", amount, ")");
|
||||
throw Out_of_caps(); }
|
||||
});
|
||||
}
|
||||
@ -174,8 +172,6 @@ void Pd_session_component::transfer_quota(Capability<Pd_session> pd_cap,
|
||||
warning("attempt to transfer RAM quota to unrelated PD session");
|
||||
throw Invalid_session(); }
|
||||
catch (Account<Ram_quota>::Limit_exceeded) {
|
||||
warning("RAM limit (", *_ram_account, ") exceeded "
|
||||
"during transfer_quota(", amount, ")");
|
||||
throw Out_of_ram(); }
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user