mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-04-14 11:54:16 +00:00
The SynapticsPreInit() function shouldn't call
xf86RemoveEnabledDevice() when it hasn't called xf86AddEnabledDevice() first.
This commit is contained in:
@@ -396,7 +396,6 @@ SynapticsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
|
||||
local->flags |= XI86_CONFIGURED;
|
||||
|
||||
if (local->fd != -1) {
|
||||
xf86RemoveEnabledDevice(local);
|
||||
if (priv->comm.buffer) {
|
||||
XisbFree(priv->comm.buffer);
|
||||
priv->comm.buffer = NULL;
|
||||
@@ -408,7 +407,6 @@ SynapticsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
|
||||
|
||||
SetupProc_fail:
|
||||
if (local->fd >= 0) {
|
||||
RemoveEnabledDevice(local->fd);
|
||||
xf86CloseSerial(local->fd);
|
||||
local->fd = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user