diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/prime_mmap_coherency.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/prime_mmap_coherency.c b/tests/prime_mmap_coherency.c index 192b4348..04b15ddd 100644 --- a/tests/prime_mmap_coherency.c +++ b/tests/prime_mmap_coherency.c @@ -101,6 +101,8 @@ static int test_read_flush(void) drm_intel_bo_unreference(bo_1); munmap(ptr_cpu, width * height); + close(dma_buf_fd); + return stale; } @@ -169,6 +171,9 @@ static int test_write_flush(void) drm_intel_bo_unreference(bo_2); munmap(ptr_cpu, width * height); + close(dma_buf2_fd); + close(dma_buf_fd); + return stale; } |