From 23207f0393be1776fdcc224248b7e7d88c1bf622 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 10 Oct 2023 09:04:35 +0300 Subject: fix enough_rpc_stack + Had a slight brainfart when refactoring --- common/uapi/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c index b9a435b..dc292ef 100644 --- a/common/uapi/ipc.c +++ b/common/uapi/ipc.c @@ -170,7 +170,7 @@ static bool enough_rpc_stack(struct tcb *t) /* if we can still fit an rpc stack into the call stack, we can safely * do the migration. */ - return (top - BASE_PAGE_SIZE) >= (t->rpc_stack - __rpc_stack_size); + return top - BASE_PAGE_SIZE - __rpc_stack_size >= RPC_STACK_BASE; } /** -- cgit v1.3