public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_oa: Use MAP_FAILED for mmap failures
@ 2026-04-01 22:32 Ashutosh Dixit
  2026-04-01 23:08 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ashutosh Dixit @ 2026-04-01 22:32 UTC (permalink / raw)
  To: igt-dev; +Cc: Umesh Nerlige Ramappa

Detect mmap failure using MAP_FAILED instead of NULL.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 tests/intel/xe_oa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 387f29535e..9444f70cd6 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -4367,7 +4367,7 @@ static void *map_oa_buffer(u32 *size)
 {
 	void *vaddr = mmap(0, default_oa_buffer_size, PROT_READ, MAP_PRIVATE, stream_fd, 0);
 
-	igt_assert(vaddr != NULL);
+	igt_assert(vaddr != MAP_FAILED);
 	*size = default_oa_buffer_size;
 	return vaddr;
 }
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-04-02 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 22:32 [PATCH i-g-t] tests/intel/xe_oa: Use MAP_FAILED for mmap failures Ashutosh Dixit
2026-04-01 23:08 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-04-01 23:22 ` ✓ i915.CI.BAT: " Patchwork
2026-04-02  7:09 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-02  9:39 ` [PATCH i-g-t] " Kamil Konieczny
2026-04-02 18:51 ` ✗ i915.CI.Full: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox