summaryrefslogtreecommitdiff
path: root/src
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 /src
parent5069e053354ad6adfcbb08c962bff93b607dec3d (diff)
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>
Diffstat (limited to 'src')
-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;