summaryrefslogtreecommitdiffstats
path: root/net/x25
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2021-03-01 20:01:33 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-17 16:43:44 +0100
commit21d62e816d3fd2591bba822ab7b74a21dcf56f89 (patch)
treefcfa0239f4684ad216b890c4f8be56638bb22513 /net/x25
parent6b687917f0ce3ba9fcb68f029d942e365a867aac (diff)
downloadlinux-stable-21d62e816d3fd2591bba822ab7b74a21dcf56f89.tar.gz
linux-stable-21d62e816d3fd2591bba822ab7b74a21dcf56f89.tar.bz2
linux-stable-21d62e816d3fd2591bba822ab7b74a21dcf56f89.zip
s390/cio: return -EFAULT if copy_to_user() fails again
commit 51c44babdc19aaf882e1213325a0ba291573308f upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions