From 6289a2379d2bf47beed790dac2a898118bb9c8f6 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Sat, 28 May 2016 23:29:38 +0200 Subject: [PATCH] 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 --- repos/base/include/root/component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/include/root/component.h b/repos/base/include/root/component.h index 561a6335fc..810344486d 100644 --- a/repos/base/include/root/component.h +++ b/repos/base/include/root/component.h @@ -253,7 +253,7 @@ class Genode::Root_component : public Rpc_object >, 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); }