linux_dsm_epyc7002/drivers/vfio/platform
Michael S. Tsirkin 8160c4e455 vfio: fix ioctl error handling
Calling return copy_to_user(...) in an ioctl will not
do the right thing if there's a pagefault:
copy_to_user returns the number of bytes not copied
in this case.

Fix up vfio to do
	return copy_to_user(...)) ?
		-EFAULT : 0;

everywhere.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2016-02-28 07:38:52 -07:00
..
reset VFIO: platform: reset: fix a warning message condition 2015-12-21 15:28:11 -07:00
Kconfig VFIO: platform: enable ARM64 build 2015-06-22 09:35:47 -06:00
Makefile vfio: platform: introduce vfio-platform-base module 2015-11-03 12:54:56 -07:00
vfio_amba.c vfio: platform: introduce vfio-platform-base module 2015-11-03 12:54:56 -07:00
vfio_platform_common.c vfio: fix ioctl error handling 2016-02-28 07:38:52 -07:00
vfio_platform_irq.c VFIO: platform: clear IRQ_NOAUTOEN when de-assigning the IRQ 2015-10-27 15:02:53 -06:00
vfio_platform_private.h vfio: platform: add dev_info on device reset 2015-11-03 12:55:05 -07:00
vfio_platform.c vfio: Drop owner assignment from platform_driver 2015-11-19 15:52:08 -07:00