linux_dsm_epyc7002/drivers/vfio/fsl-mc
Dan Carpenter 09699e56de 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: df747bcd5b ("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>
2020-11-02 15:00:06 -07:00
..
Kconfig
Makefile vfio/fsl-mc: Add irq infrastructure for fsl-mc devices 2020-10-12 11:33:06 -06:00
vfio_fsl_mc_intr.c vfio/fsl-mc: Fix the dead code in vfio_fsl_mc_set_irq_trigger 2020-10-15 12:46:08 -06:00
vfio_fsl_mc_private.h vfio/fsl-mc: Add read/write support for fsl-mc devices 2020-10-12 11:33:27 -06:00
vfio_fsl_mc.c vfio/fsl-mc: return -EFAULT if copy_to_user() fails 2020-11-02 15:00:06 -07:00