From b9e48e94ec7c01ff08aa7f1297e3fead3d7ac0a1 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Sun, 16 Jun 2013 22:29:22 +0200 Subject: [PATCH] seoul: catch exception during block session creation Leads to invalid utcb state and later on to invalid vCPU state. Issue #806 --- ports/src/vancouver/disk.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/src/vancouver/disk.cc b/ports/src/vancouver/disk.cc index 5e0408b008..b6ae300a47 100644 --- a/ports/src/vancouver/disk.cc +++ b/ports/src/vancouver/disk.cc @@ -81,11 +81,10 @@ bool Vancouver_disk::receive(MessageDisk &msg) if (!_diskcon[msg.disknr].blk_size) { - Genode::Allocator_avl * block_alloc = new Genode::Allocator_avl(Genode::env()->heap()); try { + Genode::Allocator_avl * block_alloc = new Genode::Allocator_avl(Genode::env()->heap()); _diskcon[msg.disknr].blk_con = new Block::Connection(block_alloc, 4*512*1024, label); } catch (...) { - /* there is none. */ return false; }