linux/drivers/staging/comedi
Dan Carpenter cab36da4bf Staging: comedi: Return -EFAULT if copy_to_user() fails
Return -EFAULT on error instead of the number of bytes remaining to be
copied.

Fixes: bac42fb212 ("comedi: get rid of compat_alloc_user_space() mess in COMEDI_CMD{,TEST} compat")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/X8c3pfwFy2jpy4BP@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-28 15:14:53 +01:00
..
drivers staging: comedi: mf6x4: Fix AI end-of-conversion detection 2020-12-09 15:49:13 +01:00
kcomedilib
comedi_buf.c staging: comedi: use dma_mmap_coherent for DMA-able buffer mmap 2019-06-26 09:32:13 +08:00
comedi_fops.c Staging: comedi: Return -EFAULT if copy_to_user() fails 2020-12-28 15:14:53 +01:00
comedi_internal.h Staging/IIO driver patches for 5.8-rc1 2020-06-07 10:45:08 -07:00
comedi_pci.c staging: comedi: Replace HTTP links with HTTPS ones 2020-07-25 15:27:24 +02:00
comedi_pci.h
comedi_pcmcia.c staging: comedi: Replace HTTP links with HTTPS ones 2020-07-25 15:27:24 +02:00
comedi_pcmcia.h
comedi_usb.c staging: comedi: Replace HTTP links with HTTPS ones 2020-07-25 15:27:24 +02:00
comedi_usb.h
comedi.h drivers: staging: comedi: fixed duplicate words from checkpatch 2020-08-28 12:19:16 +02:00
comedidev.h drivers: staging: comedi: fixed duplicate words from checkpatch 2020-08-28 12:19:16 +02:00
comedilib.h
drivers.c
Kconfig
Makefile comedi: move compat ioctl handling to native fops 2020-05-28 20:29:17 -04:00
proc.c
range.c comedi: get rid of compat_alloc_user_space() mess in COMEDI_RANGEINFO compat 2020-05-28 20:31:19 -04:00
TODO