Commit 22fe8bdc authored by Keith Packard's avatar Keith Packard Committed by Peter Hutterer
Browse files

Close device if DeviceOnHook fails

Signed-off-by: Keith Packard's avatarKeith Packard <>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 402cc872
......@@ -972,8 +972,10 @@ DeviceOn(DeviceIntPtr dev)
if (priv->proto_ops->DeviceOnHook &&
!priv->proto_ops->DeviceOnHook(pInfo, &priv->synpara))
!priv->proto_ops->DeviceOnHook(pInfo, &priv->synpara)) {
return !Success;
priv->comm.buffer = XisbNew(pInfo->fd, INPUT_BUFFER_SIZE);
if (!priv->comm.buffer) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment