diff --git a/commands/memtest.c b/commands/memtest.c index 379d82e..9dec0ef 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -108,7 +108,7 @@ start = PAGE_ALIGN(r->end); end = bank->res->end; size = PAGE_ALIGN_DOWN(end - start + 1); - if (start < end) { + if (start < end && start > r->end) { ret = alloc_memtest_region(list, start, size); if (ret < 0) return ret;