Commit 098a4013 authored by Chris Wilson's avatar Chris Wilson

igt/prime_mmap_coherency: Close dmabuf after use

As we loop over the coherency tests many times, we need to close the
dmabufs opened on every pass to prevent a fd leak and the test
exploding when it hits the process limit.

Bugzilla: Chris Wilson's avatarChris Wilson <>
Reviewed-by: Antonio Argenziano's avatarAntonio Argenziano <>
parent 2649a091
......@@ -101,6 +101,8 @@ static int test_read_flush(void)
munmap(ptr_cpu, width * height);
return stale;
......@@ -169,6 +171,9 @@ static int test_write_flush(void)
munmap(ptr_cpu, width * height);
return stale;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment