@@ -990,8 +991,9 @@ xi2mask_isset(XI2Mask* mask, const DeviceIntPtr dev, int 
event_type)
  void
  xi2mask_set(XI2Mask *mask, int deviceid, int event_type)
  {
-    if (deviceid<  0 || deviceid>= mask->nmasks || event_type>= 
mask->mask_size)
-        return;
+    BUG_WARN(devicid<  0);

I should probably mention that I did fix that one locally but forgot to squash before sending the patch.

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to