aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Lambert <tlambert@chromium.org>2011-07-15 17:23:20 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-07-18 11:44:24 +1000
commitffe35b6c2566fc2a3f418185a61a12c7f377affd (patch)
treec7770cc0934f326b533d6ba213c8f8d6b1e60878
parentRemove unused misc_label and val (diff)
downloadxf86-input-evdev-ffe35b6c2566fc2a3f418185a61a12c7f377affd.tar.gz
xf86-input-evdev-ffe35b6c2566fc2a3f418185a61a12c7f377affd.tar.bz2
xf86-input-evdev-ffe35b6c2566fc2a3f418185a61a12c7f377affd.zip
xf86-input-evdev: Return proper default for unknown values in pInfo->device_control.
Signed-off-by: Terry Lambert <tlambert@chromium.org> Reviewed-by: Stephane Marchesin <marcheu@chromium.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 5a38f97..917602a 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1442,6 +1442,9 @@ EvdevProc(DeviceIntPtr device, int what)
EvdevRemoveDevice(pInfo);
pEvdev->min_maj = 0;
break;
+
+ default:
+ return BadValue;
}
return Success;