From 52ac9a4b57f20f2dc019a973237f2f97ddb0ebf3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 14 Jul 2014 10:30:36 +0100 Subject: [PATCH] igt/gem_userptr_blits: Add missing RAM check before coherency tests References: https://bugs.freedesktop.org/show_bug.cgi?id=79237 Signed-off-by: Chris Wilson --- tests/gem_userptr_blits.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index 454db58e..11aa21ee 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -835,6 +835,7 @@ static int test_coherency(int fd, int count) uint32_t start = 0; int i, ret; + igt_require(count, sizeof(linear), CHECK_RAM); igt_info("Using 2x%d 1MiB buffers\n", count); ret = posix_memalign((void **)&memory, PAGE_SIZE, count*sizeof(linear));