[PATCH 2/2] tests/intel/prime_mmap: use proper size for dma_buf_fd
Pravalika Gurram
pravalika.gurram at intel.com
Tue Apr 15 13:31:06 UTC 2025
From: Chris Wilson <chris.p.wilson at linux.intel.com>
correct the size for dma_buf_fd.
Signed-off-by: Chris Wilson <chris.p.wilson at linux.intel.com>
Signed-off-by: Pravalika Gurram <pravalika.gurram at intel.com>
---
tests/intel/prime_mmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/intel/prime_mmap.c b/tests/intel/prime_mmap.c
index e3a3a021b..ae0c74dfe 100644
--- a/tests/intel/prime_mmap.c
+++ b/tests/intel/prime_mmap.c
@@ -502,7 +502,7 @@ test_aperture_limit(uint32_t region, uint64_t size)
fill_bo_cpu(ptr1, size);
igt_assert(memcmp(ptr1, pattern, sizeof(pattern)) == 0);
- handle2 = gem_create(fd, size1);
+ handle2 = gem_create(fd, size2);
dma_buf_fd2 = prime_handle_to_fd_for_mmap(fd, handle2);
igt_assert(errno == 0);
ptr2 = mmap(NULL, size2, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd2, 0);
--
2.34.1
More information about the igt-dev
mailing list