Input: evdev - fix overflow in compat_ioctl
authorKenichi Nagai <kenichi3.nagai@toshiba.co.jp>
Fri, 11 May 2007 05:12:15 +0000 (01:12 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 11 May 2007 16:08:04 +0000 (09:08 -0700)
commitbf61f8d357e5d71d74a3ca3be3cce52bf1a2c01a
treec27279afbee1b9927f992938587db09f061398f5
parent435b71be20f2ad3688acd94c05e968e029464d60
Input: evdev - fix overflow in compat_ioctl

When exporting input device bitmaps via compat_ioctl on BIG_ENDIAN
platforms evdev calculates data size incorrectly. This causes buffer
overflow if user specifies buffer smaller than maxlen.

Signed-off-by: Kenichi Nagai <kenichi3.nagai@toshiba.co.jp>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/input/evdev.c