linux/drivers/s390
Wang Qing 51c44babdc s390/cio: 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: e01bcdd613 ("vfio: ccw: realize VFIO_DEVICE_GET_REGION_INFO ioctl")
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/1614600093-13992-1-git-send-email-wangqing@vivo.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2021-03-08 10:46:29 +01:00
..
block for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
char s390/zcore: release dump save area on restart or power down 2021-03-08 10:46:28 +01:00
cio s390/cio: return -EFAULT if copy_to_user() fails 2021-03-08 10:46:29 +01:00
crypto s390 updates for the 5.12 merge window 2021-02-21 13:40:06 -08:00
net s390 updates for the 5.12 merge window 2021-02-21 13:40:06 -08:00
scsi scsi: zfcp: Do not set COMMAND_COMPLETE 2021-01-22 21:14:09 -05:00
virtio virtio/s390: implement virtio-ccw revision 2 correctly 2021-02-24 00:31:23 +01:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00