diff options
author | Terry Lambert <tlambert@chromium.org> | 2011-07-15 17:23:20 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-07-18 11:44:24 +1000 |
commit | ffe35b6c2566fc2a3f418185a61a12c7f377affd (patch) | |
tree | c7770cc0934f326b533d6ba213c8f8d6b1e60878 /src/evdev.c | |
parent | 5069e053354ad6adfcbb08c962bff93b607dec3d (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/evdev.c')
-rw-r--r-- | src/evdev.c | 3 |
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; |