os: extend ram_session_guard for platform_driver

Issue #1039
This commit is contained in:
Alexander Boettcher
2016-11-23 20:31:35 +01:00
committed by Christian Helmuth
parent dffc1b0497
commit e32b78d95d
2 changed files with 105 additions and 12 deletions

View File

@ -56,7 +56,7 @@ class Net::Stream_allocator
Stream_allocator(Genode::Ram_session &ram,
Genode::Region_map &rm,
Genode::size_t amount)
: _ram(ram, amount),
: _ram(ram, Genode::Ram_session_capability(), amount),
_heap(ram, rm),
_range_alloc(&_heap) {}