kernel-ark/drivers/input
Peter Korsgaard 439581ec07 Input: evdev - fix evdev_write return value on partial writes
As was recently brought up on the busybox list
(http://lists.busybox.net/pipermail/busybox/2011-January/074565.html),
evdev_write doesn't properly check the count argument, which will
lead to a return value > count on partial writes if the remaining bytes
are accessible - causing userspace confusion.

Fix it by only handling each full input_event structure and return -EINVAL
if less than 1 struct was written, similar to how it is done in evdev_read.

Reported-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2011-02-27 01:52:53 -08:00
..
gameport Input: serio/gameport - use 'long' system workqueue 2011-02-23 08:53:07 -08:00
joystick Merge branch 'next' into for-linus 2011-01-11 22:01:45 -08:00
keyboard Input: tegra-kbc - add function keymap 2011-02-18 08:39:03 -08:00
misc Input: rotary_encoder - use proper irqflags 2011-02-02 23:01:00 -08:00
mouse Input: bcm5974 - Report button also for zero fingers 2011-02-27 01:48:30 -08:00
serio Input: serio/gameport - use 'long' system workqueue 2011-02-23 08:53:07 -08:00
tablet Input: wacom - fix error path in wacom_probe() 2011-02-11 01:01:15 -08:00
touchscreen Input: ads7846 - check proper condition when freeing gpio 2011-02-11 00:58:24 -08:00
apm-power.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
evbug.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
evdev.c Input: evdev - fix evdev_write return value on partial writes 2011-02-27 01:52:53 -08:00
ff-core.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
ff-memless.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
fixp-arith.h
input-compat.c
input-compat.h [IA64] Remove COMPAT_IA32 support 2010-02-08 10:42:17 -08:00
input-mt.c input: mt: Move tracking and pointer emulation to input-mt 2010-12-16 10:41:38 +01:00
input-polldev.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
input.c Revert "Input: do not pass injected events back to the originating handler" 2011-02-02 23:04:27 -08:00
joydev.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
Kconfig Merge branch 'xen/fbdev' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen 2009-12-10 09:34:40 -08:00
Makefile Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rydberg/input-mt into next 2010-12-16 09:17:48 -08:00
mousedev.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00
sparse-keymap.c Input: sparse-keymap - fix KEY_VSW handling in sparse_keymap_setup 2011-01-20 23:13:29 -08:00
xen-kbdfront.c Input: use pr_fmt and pr_<level> 2010-11-30 23:10:26 -08:00