linux_dsm_epyc7002/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
ambakmi.c
ams_delta_serio.c Merge branch 'fixes-gpio-to-irq' into fixes 2012-03-29 10:16:04 -07:00
at32psif.c
ct82c710.c
gscps2.c
hil_mlc.c
hp_sdc_mlc.c
hp_sdc.c
i8042-io.h
i8042-ip22io.h
i8042-jazzio.h
i8042-ppcio.h
i8042-snirm.h
i8042-sparcio.h
i8042-unicore32io.h
i8042-x86ia64io.h
i8042.c
i8042.h
Kconfig
libps2.c
maceps2.c
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
rpckbd.c
sa1111ps2.c
serio_raw.c Input: serio_raw - signal EFAULT even if read/write partially succeeds 2012-05-02 00:21:13 -07:00
serio.c
serport.c
xilinx_ps2.c Input: xilinx_ps2 - allocate serio port separately 2012-04-03 09:57:11 -07:00