[igt-dev] [PATCH i-g-t v34 40/40] i915/gem_concurrent_all.c: Fixup failure spotted in review

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Fri Sep 11 08:07:57 UTC 2020


From: Dominik Grzegorzek <dominik.grzegorzek at intel.com>

Obviously, I forgot to clear ptr which was smuggling dmabuf.

Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
---
 tests/i915/gem_concurrent_all.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/gem_concurrent_all.c b/tests/i915/gem_concurrent_all.c
index 3b17ffd9..6609e1df 100644
--- a/tests/i915/gem_concurrent_all.c
+++ b/tests/i915/gem_concurrent_all.c
@@ -444,6 +444,7 @@ dmabuf_release_bo(struct intel_buf *buf)
 {
 	struct dmabuf *dmabuf = (void *) buf->ptr;
 	igt_assert(dmabuf);
+	buf->ptr = NULL;
 
 	munmap(dmabuf->map, buf->surface[0].size);
 	close(dmabuf->fd);
-- 
2.26.0



More information about the igt-dev mailing list