All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/igt_debugfs: Handle memory allocation failures for CRC
@ 2021-09-22  7:43 Bhanuprakash Modem
  2021-09-22  9:58 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Bhanuprakash Modem @ 2021-09-22  7:43 UTC (permalink / raw)
  To: igt-dev; +Cc: Bhanuprakash Modem

Throw assert if failed to allocate memory for pipe crc.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 lib/igt_debugfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index 2f58519a2..a5bb95ca3 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -688,6 +688,7 @@ pipe_crc_new(int fd, enum pipe pipe, const char *source, int flags)
 	igt_assert(debugfs != -1);
 
 	pipe_crc = calloc(1, sizeof(struct _igt_pipe_crc));
+	igt_assert(pipe_crc);
 
 	sprintf(buf, "crtc-%d/crc/control", pipe);
 	pipe_crc->ctl_fd = openat(debugfs, buf, O_WRONLY);
-- 
2.32.0

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

end of thread, other threads:[~2021-09-27 15:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22  7:43 [igt-dev] [PATCH i-g-t] lib/igt_debugfs: Handle memory allocation failures for CRC Bhanuprakash Modem
2021-09-22  9:58 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-09-22 12:12 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-09-27 11:39 ` [igt-dev] [PATCH i-g-t] " Karthik B S
2021-09-27 11:40 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_debugfs: Handle memory allocation failures for CRC (rev2) Patchwork
2021-09-27 13:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-09-27 14:24   ` Modem, Bhanuprakash
2021-09-27 15:34 ` [igt-dev] ✓ Fi.CI.IGT: success " 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.