linux/drivers/input
Dmitry Torokhov 7c4f56070f Input: evdev - fix EVIOCG{type} ioctl
The 'max' size passed into the function is measured in number of bits
(KEY_MAX, LED_MAX, etc) so we need to convert it accordingly before trying
to copy the data out, otherwise we will try copying too much and end up
with up with a page fault.

Reported-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2014-10-07 09:55:01 -07:00
..
gameport Input: joystick - use ktime for measuring timing 2014-09-11 23:41:18 -07:00
joystick Input: joystick - use ktime for measuring timing 2014-09-11 23:41:18 -07:00
keyboard Input: cros_ec_keyb - optimize ghosting algorithm 2014-09-03 17:07:05 -07:00
misc Input: soc_button_array - convert to platform bus 2014-09-24 16:27:24 -07:00
mouse Input: psmouse - add support for detecting FocalTech PS/2 touchpads 2014-09-15 14:30:46 -07:00
serio Merge branch 'next' into for-linus 2014-08-06 23:36:12 -07:00
tablet Merge branch 'wacom' into next 2014-08-06 23:31:48 -07:00
touchscreen Merge branch 'next' into for-linus 2014-08-14 23:02:58 -07:00
apm-power.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
evbug.c
evdev.c Input: evdev - fix EVIOCG{type} ioctl 2014-10-07 09:55:01 -07:00
ff-core.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
ff-memless.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
input-compat.c compat: Use COMPAT_USE_64BIT_TIME in the input subsystem 2012-02-20 12:48:47 -08:00
input-compat.h compat: Use COMPAT_USE_64BIT_TIME in the input subsystem 2012-02-20 12:48:47 -08:00
input-mt.c Input: MT - make slot cleanup callable outside mt_sync_frame() 2014-08-07 23:37:07 -07:00
input-polldev.c Input: implement managed polled input devices 2014-05-14 16:40:04 -07:00
input.c Input: fix defuzzing logic 2014-07-20 13:17:42 -07:00
joydev.c Input: fix use-after-free introduced with dynamic minor changes 2012-10-22 08:50:37 +03:00
Kconfig Input: mousedev - allow disabling even without CONFIG_EXPERT 2013-10-31 08:46:07 -07:00
Makefile Input: matrix-keymap - uninline and prepare for device tree support 2012-05-10 22:38:47 -07:00
matrix-keymap.c input: Export matrix_keypad_parse_of_params() 2013-04-19 00:31:13 +02:00
mousedev.c Input: mousedev - fix race when creating mixed device 2014-03-29 14:44:23 -07:00
sparse-keymap.c treewide: Fix typo in Documentation/DocBook 2014-02-19 14:58:17 +01:00