summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorOldřich Jedlička <oldium.pro@seznam.cz>2010-01-17 17:59:03 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2010-02-02 10:00:31 +1000
commit08b22c7faf97217ea4d497eec6624fc3dd916d9b (patch)
tree669d4076050af6e48f13450a035de6a52232a1c5 /xkb
parentb91cec26de367f75388e620772747b08eee34294 (diff)
Allow driver to call DeleteInputDeviceRequest during UnInit
When the input driver (like xf86-input-wacom) removes it's devices during a call to UnInit, the CloseDownDevices() cannot handle it. The "next" variable can become a pointer to freed memory. The patch introduces order-independent device freeing mechanism by remembering the already freed device ids. The devices can reorder any time during freeing. No device will be double-freed - if the removing failed for any reason; some implementations of DeleteInputDeviceRequest don't free the devices already. Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz> Reviewed-by: Simon Thum <simon.thum@gmx.de> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
0 files changed, 0 insertions, 0 deletions