linux/drivers/input/serio
Dmitry Torokhov 46f49b7a22 Input: serio_raw - signal EFAULT even if read/write partially succeeds
When copy_to/from_user fails in the middle of transfer we should not
report to the user that read/write partially succeeded but rather
report -EFAULT right away, so that application will know that it got
its buffers all wrong.

If application messed up its buffers we can't trust the data fetched
from userspace and successfully written to the device or if data read
from the device and transferred to userspace ended up where application
expected it to end.

If serio_write() fails we still going to report partial writes if failure
happens in the middle of the transfer.

This is basically a revert of 7a0a27d2ce
and 4fa0771138.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2012-05-02 00:21:13 -07:00
..
altera_ps2.c Input: altera_ps2 - use of_match_ptr() 2012-03-16 23:34:00 -07:00
ambakmi.c ARM: 7362/1: AMBA: Add module_amba_driver() helper macro for amba_driver 2012-03-16 23:32:35 +00:00
ams_delta_serio.c Merge branch 'fixes-gpio-to-irq' into fixes 2012-03-29 10:16:04 -07:00
at32psif.c Merge commit 'v3.3-rc6' into next 2012-03-09 10:55:17 -08:00
ct82c710.c
gscps2.c
hil_mlc.c
hp_sdc_mlc.c
hp_sdc.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
i8042-io.h
i8042-ip22io.h
i8042-jazzio.h
i8042-ppcio.h
i8042-snirm.h
i8042-sparcio.h
i8042-unicore32io.h
i8042-x86ia64io.h Input: i8042 - add Lenovo Ideapad U455 to 'reset' blacklist 2012-02-03 00:22:43 -08:00
i8042.c Input: i8042 - also perform controller reset when suspending 2011-11-05 00:01:56 -07:00
i8042.h
Kconfig
libps2.c Input: libps2.c: fix comment typo arrrives. 2011-06-27 12:28:56 +02:00
maceps2.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
Makefile
parkbd.c
pcips2.c Input: use module_pci_driver 2012-04-21 23:48:58 -07:00
ps2mult.c Input: serio - use module_serio_driver 2012-04-04 09:25:43 -07:00
q40kbd.c Input: q40kbd - convert driver to the split model 2012-01-23 00:02:31 -08:00
rpckbd.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
sa1111ps2.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
serio_raw.c Input: serio_raw - signal EFAULT even if read/write partially succeeds 2012-05-02 00:21:13 -07:00
serio.c Driver core: driver_find() drops reference before returning 2012-01-24 16:00:34 -08:00
serport.c Revert "tty: make receive_buf() return the amout of bytes received" 2011-06-04 06:33:24 +09:00
xilinx_ps2.c Input: xilinx_ps2 - allocate serio port separately 2012-04-03 09:57:11 -07:00