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:
Alexander Boettcher 2016-05-28 23:29:38 +02:00 committed by Christian Helmuth
parent 5c10653d8a
commit 6289a2379d

View File

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