dix: fix crashers with floating device.
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Jun 2011 00:42:50 +0000 (10:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Jun 2011 05:17:55 +0000 (15:17 +1000)
commit0d140567ba2b5bf364265dba07de519f691c67a1
treea3e00127df80438c321f5bb630802e4f690a277e
parentbfd8422e8877acf02155ca0bd7fbd2416b029720
dix: fix crashers with floating device.

dc57f89959e549403f8488eb9f23425bd7118b22 accidentally reversed the
conditions.

in dix/events.c we try to detach floating devices. This leads to a
NULL-dereference on GetMaster()->id.

in dix/getevents.c we try to get the master device for the floating slave
and dereference it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
dix/events.c
dix/getevents.c