diff options
author | Wang Qing <wangqing@vivo.com> | 2021-03-01 15:01:33 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-03-08 12:46:29 +0300 |
commit | 51c44babdc19aaf882e1213325a0ba291573308f (patch) | |
tree | e672a65cdca9dc3cfa5bdb5ece9dbf63e58afa00 /Kconfig | |
parent | 46b635b6abcf2ee106d36f2e84e942f56030c8f5 (diff) | |
download | linux-51c44babdc19aaf882e1213325a0ba291573308f.tar.xz |
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: e01bcdd61320 ("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>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions