Files
xserver/Xi
Peter Hutterer 48f7298657 Xi: reset the sli pointers after copying device classes. (#25640)
If the indicator flags have the XkbSLI_IsDefault bit set, the indicator map
and names aren't their own bit of memory but rather point into the
device->key->xkbInfo->desc structure. XkbCopySrvLedInfo knows about this and
leaves the pointers alone.

When copying the classes from the slave to the master, these pointers are
copied and still point to the dev->key class of the slave device. If the
slave device is removed, the memory becomes invalid and a call to modify
this data (e.g. XkbSetIndicators) may cause a deadlock.

The copying of dev->key relies on dev->kbdfeed to be already set up. Hence
the pointers need to be reset once _both_ kbdfeed and key have been copied
into the master device.

X.Org Bug 25640 <http://bugs.freedesktop.org/show_bug.cgi?id=25640>
Fedora Bug 540584 <https://bugzilla.redhat.com/show_bug.cgi?id=540584>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
2010-02-15 15:27:41 +10:00
..
2007-03-25 21:18:39 -04:00
2007-03-25 21:18:39 -04:00
2007-03-25 21:18:39 -04:00
2007-03-25 21:18:39 -04:00
2007-03-25 21:18:39 -04:00
2009-01-22 15:08:55 +11:00
2009-07-30 08:43:14 +10:00
2009-06-17 09:05:22 +10:00
2009-09-03 08:39:27 +10:00
2009-06-17 09:05:22 +10:00
2009-06-17 09:05:22 +10:00
2009-09-03 08:39:27 +10:00
2009-09-03 08:39:27 +10:00
2009-09-03 08:39:27 +10:00
2009-06-17 09:05:22 +10:00
2009-06-17 09:05:22 +10:00
2009-06-17 09:05:22 +10:00
2009-09-03 08:39:27 +10:00
2009-06-17 09:05:22 +10:00
2009-09-03 08:39:27 +10:00
2009-06-17 09:05:22 +10:00