Fix crash on kernels with extended keymap space
Fix crash on kernels with extended keymap space

The len argument of EVIOCGBIT(ev,len) is the size of the receiving
buffer in bytes, not maximim number of bits to retrieve.

Signed-off-by: Dmitry Torokhov <10a8c465cefc9bdd6c925e26964d23c90f1141cc@mail.ru>
Signed-off-by: Julien Cristau <82c7ebd12259428dfee9dc86e69f3a9d6f3dccb9@debian.org>

kelnos/xf86-input-synaptics,RazZziel/synaptics-xrandr,ssaavedra/xf86-input-synaptics,eyko/xf86-input-synaptics,mortehu/xf86-input-synaptics,joeshaw/xf86-input-synaptics,nanderson94/xf86-input-synaptics,corcoran/xserver-xorg-input-synaptics,philipn/xserver-xorg-input-synaptics,kelnos/xf86-input-synaptics,RsrchBoy/xserver-xorg-input-synaptics,quadpixels/three-finger-dragging,sencer/synaptics,RazZziel/synaptics-xrandr,joeshaw/xf86-input-synaptics,Lyude/xf86-input-synaptics,gdestuynder/xf86-input-synaptics,ssaavedra/xf86-input-synaptics,sencer/synaptics,RsrchBoy/xserver-xorg-input-synaptics,mildred/xorg-synaptics-orientation-patch,felipejfc/xserver-xorg-input-synaptics,jiixyj/xf86-input-synaptics,philipn/xserver-xorg-input-synaptics,jiixyj/xf86-input-synaptics,quadpixels/three-finger-dragging,felipejfc/xserver-xorg-input-synaptics,gdestuynder/xf86-input-synaptics,felipejfc/xserver-xorg-input-synaptics,corcoran/xserver-xorg-input-synaptics,mortehu/xf86-input-synaptics,mmonaco/xf86-input-synaptics,Lyude/xf86-input-synaptics,philipn/xserver-xorg-input-synaptics,eyko/xf86-input-synaptics,mmonaco/xf86-input-synaptics,nanderson94/xf86-input-synaptics,mildred/xorg-synaptics-orientation-patch