-
由 Stephen Kitt 提交于
Up to now axis and button map validation was done after the user-supplied values were copied over the driver's map. This patch copies the user-supplied values into temporary buffers and validated them before overwriting the driver's permanent maps. Also change JSIOCGBTNMAP and JSIOCGAXMAP to return number of bytes returned to userspace instead of 0. Signed-off-by: NStephen Kitt <steve@sk2.org> Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
999b874f