diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-06 10:55:49 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-07 09:55:01 -0700 |
commit | 7c4f56070fde2367766fa1fb04852599b5e1ad35 (patch) | |
tree | bae58fba448d8f38252bc2d7bccffb03fa503a1d /drivers/pcmcia/m32r_pcc.c | |
parent | 042e1c79166b9250edd8262bea84e1703f27ad2e (diff) | |
download | linux-7c4f56070fde2367766fa1fb04852599b5e1ad35.tar.bz2 |
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>
Diffstat (limited to 'drivers/pcmcia/m32r_pcc.c')
0 files changed, 0 insertions, 0 deletions