All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/api_intel_bb: Fix invalid munmap in render-ccs
@ 2021-03-23 18:18 Zbigniew Kempczyński
  2021-03-23 21:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zbigniew Kempczyński @ 2021-03-23 18:18 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] 4+ messages in thread

end of thread, other threads:[~2021-03-24 14:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 18:18 [igt-dev] [PATCH i-g-t] tests/api_intel_bb: Fix invalid munmap in render-ccs Zbigniew Kempczyński
2021-03-23 21:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-03-24  8:49 ` [igt-dev] [PATCH i-g-t] " Petri Latvala
2021-03-24 14:16 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

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.