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:
parent
8afcbce01e
commit
b9e48e94ec
|
@ -81,11 +81,10 @@ bool Vancouver_disk::receive(MessageDisk &msg)
|
||||||
|
|
||||||
if (!_diskcon[msg.disknr].blk_size) {
|
if (!_diskcon[msg.disknr].blk_size) {
|
||||||
|
|
||||||
Genode::Allocator_avl * block_alloc = new Genode::Allocator_avl(Genode::env()->heap());
|
|
||||||
try {
|
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);
|
_diskcon[msg.disknr].blk_con = new Block::Connection(block_alloc, 4*512*1024, label);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
||||||
/* there is none. */
|
/* there is none. */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user