linux/drivers/cxl
Dan Carpenter 58294927f4 cxl/mem: Return -EFAULT if copy_to_user() fails
The copy_to_user() function returns the number of bytes remaining to be
copied, but we want to return -EFAULT if the copy doesn't complete.

Fixes: b754ffbbc0ee ("cxl/mem: Add basic IOCTL interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YC+K3kgzqm20zCWY@mwanda
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2021-02-19 07:40:23 -08:00
..
bus.c cxl/mem: Register CXL memX devices 2021-02-16 20:36:38 -08:00
cxl.h cxl/mem: Enable commands via CEL 2021-02-16 20:36:38 -08:00
Kconfig cxl/mem: Add a "RAW" send command 2021-02-16 20:36:38 -08:00
Makefile cxl/mem: Register CXL memX devices 2021-02-16 20:36:38 -08:00
mem.c cxl/mem: Return -EFAULT if copy_to_user() fails 2021-02-19 07:40:23 -08:00
pci.h