diff --git a/upatch-manage/upatch-stack-check.c b/upatch-manage/upatch-stack-check.c index 474d857983b2019cf02fc1b2b66099ac65da285d..06de7d3cfbbb3968698b0a13b6c0290123d048c7 100644 --- a/upatch-manage/upatch-stack-check.c +++ b/upatch-manage/upatch-stack-check.c @@ -29,7 +29,7 @@ static int stack_check(struct upatch_info *uinfo, unsigned long pc, upatch_actio log_error("Unknown upatch action\n"); return -1; } - if (pc >= start && pc <= end) { + if (pc >= start && pc < end) { log_error("Failed to check stack, running function: %s\n", uinfo->funcs[i].name); return -1;