commit | 09699e56dee946a16767021af97411ed6f4b3e6b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Oct 23 14:34:50 2020 +0300 |
committer | Alex Williamson <alex.williamson@redhat.com> | Mon Nov 02 15:00:06 2020 -0700 |
tree | 48550a0d839441495ef35d09a395f2dc009f8946 | |
parent | 572f64c71e0fe30089699b22ce0ca3d4bf452ce9 [diff] |
vfio/fsl-mc: return -EFAULT if copy_to_user() fails The copy_to_user() function returns the number of bytes remaining to be copied, but this code should return -EFAULT. Fixes: df747bcd5b21 ("vfio/fsl-mc: Implement VFIO_DEVICE_GET_REGION_INFO ioctl call") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Diana Craciun <diana.craciun@oss.nxp.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>