mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
terminal_log: remove session size check
The amount of RAM required by the session object is already accounted for by the Root_component. Fixes #3776.
This commit is contained in:
parent
dc8b4eeb40
commit
e8fec3eed6
@ -102,14 +102,6 @@ namespace Genode {
|
||||
*/
|
||||
Termlog_component *_create_session(const char *args) override
|
||||
{
|
||||
size_t ram_quota =
|
||||
Arg_string::find_arg(args, "ram_quota" ).ulong_value(0);
|
||||
|
||||
/* delete ram quota by the memory needed for the session */
|
||||
size_t session_size = max((size_t)4096, sizeof(Termlog_component));
|
||||
if (ram_quota < session_size)
|
||||
throw Insufficient_ram_quota();
|
||||
|
||||
char label_buf[Termlog_component::LABEL_LEN];
|
||||
|
||||
Arg label_arg = Arg_string::find_arg(args, "label");
|
||||
|
Loading…
x
Reference in New Issue
Block a user