* [igt-dev] [PATCH i-g-t] tests/gem_mmap_offset: Fix invalid munmap in api_intel_bb
@ 2021-03-23 18:13 Zbigniew Kempczyński
0 siblings, 0 replies; only message in thread
From: Zbigniew Kempczyński @ 2021-03-23 18:13 UTC (permalink / raw)
To: igt-dev; +Cc: Petri Latvala, Chris Wilson
Fix bug which leads to SIGSEGV in api_intel_bb@render-ccs test.
Instead of pointer unmap was done on intel_buf what was wrong.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/i915/api_intel_bb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index cc1d1be6e..9115d3f8f 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -1068,7 +1068,7 @@ static uint32_t count_compressed(int gen, struct intel_buf *buf)
if (ptr[buf->ccs[0].offset + i])
compressed++;
- munmap(buf, intel_buf_bo_size(buf));
+ munmap(ptr, intel_buf_bo_size(buf));
return compressed;
}
--
2.26.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-23 18:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 18:13 [igt-dev] [PATCH i-g-t] tests/gem_mmap_offset: Fix invalid munmap in api_intel_bb Zbigniew Kempczyński
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.