dix: don't allow keyboard devices to submit motion or button events.
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 29 Aug 2011 02:36:26 +0000 (12:36 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 11 Oct 2011 02:06:42 +0000 (12:06 +1000)
commitb059e06e19ac9417ceeb8be58c1c91b159291865
tree06a1e5289d338fd832fb8d45934bbd698f14e76a
parentbccff533184a051b614a26304ce77ad30bede5e0
dix: don't allow keyboard devices to submit motion or button events.

GPE unconditionally dereferences pDev->valuator if a mask is present. This
shouldn't really happen but if it does, don't crash, just ignore the events
with an error.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
dix/getevents.c