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

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


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

diff --git a/src/js_x.c b/src/js_x.c
index b203d11..576dc27 100644
--- a/src/js_x.c
+++ b/src/js_x.c
@@ -220,7 +220,7 @@ xf86JS_XProc(DeviceIntPtr pJS_X, int operation)
    default:
       xf86Msg(X_ERROR, "JamStudio: Unhandled operation number %d.\n",
 	      operation);
-      break;
+      return BadValue;
    }
    return Success;
 }
-- 
1.7.3.1



More information about the xorg-devel mailing list