diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 0543c92f4300..a2d26b1b33b9 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -486,7 +486,7 @@ vm_rev_map_gpa(struct vmctx *ctx, void *addr) offaddr = (char *)addr - ctx->baseaddr; if (ctx->lowmem > 0) - if (offaddr >= 0 && offaddr <= ctx->lowmem) + if (offaddr <= ctx->lowmem) return (offaddr); if (ctx->highmem > 0)