diff options
Diffstat (limited to 'commands/memtest.c')
-rw-r--r-- | commands/memtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/memtest.c b/commands/memtest.c index 379d82eab4..9dec0efcba 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -108,7 +108,7 @@ static int request_memtest_regions(struct list_head *list) 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; |