[PATCH] xf86-input-evdev: Return proper default for unknown values in pInfo->device_control.

Terry Lambert tlambert at chromium.org
Fri Jul 15 17:23:20 PDT 2011


Signed-off-by: Terry Lambert <tlambert at chromium.org>
Reviewed-by: Stephane Marchesin <marcheu at chromium.org>
---
 src/evdev.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index 5a38f97..6ebd674 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;
-- 
1.7.3.1



More information about the xorg-devel mailing list