From 0463011f113a92a0c9b19fb91cbb081c743a2f32 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Mon, 7 Jan 2019 22:28:49 +0100 Subject: [PATCH] syscall_exec16: pagemap_realloc takes top, not size Signed-off-by: Tormod Volden --- Kernel/syscall_exec16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/syscall_exec16.c b/Kernel/syscall_exec16.c index 876258ec..27727f3e 100644 --- a/Kernel/syscall_exec16.c +++ b/Kernel/syscall_exec16.c @@ -135,7 +135,7 @@ arg_t _execve(void) two elements. We never allocate 'code' as there is no split I/D */ /* This is only safe from deadlocks providing pagemap_realloc doesn't sleep */ - if (pagemap_realloc(0, top - MAPBASE, 0)) + if (pagemap_realloc(0, top, 0)) goto nogood3; /* From this point on we are commmited to the exec() completing */ -- 2.34.1