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

Peter Hutterer peter.hutterer at who-t.net
Sun Jul 17 18:53:45 PDT 2011


On Fri, Jul 15, 2011 at 05:23:25PM -0700, Terry Lambert wrote:
> Signed-off-by: Terry Lambert <tlambert at chromium.org>
> Reviewed-by: Stephane Marchesin <marcheu at chromium.org>
> ---
>  src/vmmouse.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/src/vmmouse.c b/src/vmmouse.c
> index ad014ec..0e618b4 100644
> --- a/src/vmmouse.c
> +++ b/src/vmmouse.c
> @@ -980,6 +980,9 @@ VMMouseDeviceControl(DeviceIntPtr device, int mode)
>        usleep(300000);
>        break;
>  
> +   default:
> +      return BadValue;
> +
>     }
>  
>     return Success;
> -- 
> 1.7.3.1

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
  Peter


More information about the xorg-devel mailing list