[PATCH evdev 4/6] Close the fd when mtdev open fails
Peter Hutterer
peter.hutterer at who-t.net
Wed Jun 6 18:36:58 PDT 2012
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/evdev.c b/src/evdev.c
index 120c65b..39cdcf0 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2352,6 +2352,7 @@ EvdevOpenDevice(InputInfoPtr pInfo)
pEvdev->cur_slot = pEvdev->mtdev->caps.slot.value;
else {
xf86Msg(X_ERROR, "%s: Couldn't open mtdev device\n", pInfo->name);
+ EvdevCloseDevice(pInfo);
return FALSE;
}
#endif
--
1.7.10.2
More information about the xorg-devel
mailing list