[PATCH xserver] inputthread: Initialise inputThreadInfo->changed before use
Chris Wilson
chris at chris-wilson.co.uk
Wed Feb 22 14:56:28 UTC 2017
==8734== Thread 2 InputThread:
==8734== Conditional jump or move depends on uninitialised value(s)
==8734== at 0x2FDB05: InputThreadDoWork (inputthread.c:333)
==8734== by 0x6924423: start_thread (pthread_create.c:333)
==8734== by 0x6C229BE: clone (clone.S:105)
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
os/inputthread.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/os/inputthread.c b/os/inputthread.c
index 8e7f2edb9..4400fba3f 100644
--- a/os/inputthread.c
+++ b/os/inputthread.c
@@ -403,6 +403,8 @@ InputThreadPreInit(void)
if (!inputThreadInfo)
FatalError("input-thread: could not allocate memory");
+ inputThreadInfo->changed = FALSE;
+
inputThreadInfo->thread = 0;
xorg_list_init(&inputThreadInfo->devs);
inputThreadInfo->fds = ospoll_create();
--
2.11.0
More information about the xorg-devel
mailing list