summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-07-19 15:35:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-19 15:35:57 +1000
commitd94a08d344e2be818edbc58a2f03fb5041e44158 (patch)
tree7f61066a7c63da9404f06caed6b621a7f764f23b
parentc28252b79f7bf9f89f2dee940838570a46f7d9c0 (diff)
Always reset the fd if auto-probing fails.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86Aiptek.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c
index 419c6a1..7368602 100644
--- a/src/xf86Aiptek.c
+++ b/src/xf86Aiptek.c
@@ -926,6 +926,7 @@ xf86AiptekHIDOpen(InputInfoPtr pInfo)
{
xf86Msg(X_ERROR, "xf86AiptekHIDOpen ERROR: %d\n", err);
SYSCALL(close(pInfo->fd));
+ pInfo->fd = -1;
return !Success;
}