[PATCH i-g-t] lib: ensure igt_display_init clears the memory for the display struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the call to memset that was accidentally removed in:

commit 1e9e1baba389fe498be12390ceeeacb1d141a5cf
Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
Date:   Thu Mar 13 17:20:05 2014 +0100

    lib/igt_kms: rip out custom verbose loggin support

    Instead just piggy-pack on top of igt_log.

    Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>

Signed-off-by: Thomas Wood <thomas.wood@xxxxxxxxx>
---
 lib/igt_kms.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index ec1ab38..1d9362d 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -544,6 +544,8 @@ void igt_display_init(igt_display_t *display, int drm_fd)
 	drmModePlaneRes *plane_resources;
 	int i;
 
+	memset(display, 0, sizeof(igt_display_t));
+
 	LOG_INDENT(display, "init");
 
 	display->drm_fd = drm_fd;
-- 
1.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux