seoul: catch exception during block session creation

Leads to invalid utcb state and later on to invalid vCPU state.

Issue #806
This commit is contained in:
Alexander Boettcher 2013-06-16 22:29:22 +02:00 committed by Norman Feske
parent 8afcbce01e
commit b9e48e94ec
1 changed files with 1 additions and 2 deletions

View File

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