mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
base: deny session creation if quota insufficient
Quota_exceeded message are of no use during session construction, since the arguments of the ram_quota are used and no upgrade can take place (the session construction failed and is so not available for upgrade) Fixes #1983
This commit is contained in:
parent
5c10653d8a
commit
6289a2379d
@ -253,7 +253,7 @@ class Genode::Root_component : public Rpc_object<Typed_root<SESSION_TYPE> >,
|
||||
|
||||
SESSION_TYPE *s = 0;
|
||||
try { s = _create_session(adjusted_args, affinity); }
|
||||
catch (Allocator::Out_of_memory) { throw Root::Quota_exceeded(); }
|
||||
catch (Allocator::Out_of_memory) { throw Root::Unavailable(); }
|
||||
|
||||
return _ep->manage(s);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user