diff options
Diffstat (limited to 'tests/gem_mmap.c')
-rw-r--r-- | tests/gem_mmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_mmap.c b/tests/gem_mmap.c index 49e72596..41884292 100644 --- a/tests/gem_mmap.c +++ b/tests/gem_mmap.c @@ -167,6 +167,7 @@ igt_main igt_assert(OBJECT_SIZE > 4096); arg.handle = gem_create(fd, OBJECT_SIZE); addr = gem_mmap__cpu(fd, arg.handle, 0, 4096, PROT_WRITE); + igt_assert(addr); memset(addr, 0, 4096); munmap(addr, 4096); gem_close(fd, arg.handle); |