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