alistair23-linux/drivers/vfio/pci
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
..
Kconfig vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
Makefile vfio: initialize the virqfd workqueue in VFIO generic code 2015-03-16 14:08:54 -06:00
vfio_pci.c vfio: fix ioctl error handling 2016-02-28 07:38:52 -07:00
vfio_pci_config.c vfio/pci: make an array larger 2015-11-09 08:59:11 -07:00
vfio_pci_intrs.c vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
vfio_pci_private.h vfio: Register/unregister irq_bypass_producer 2015-10-01 15:06:50 +02:00
vfio_pci_rdwr.c vfio-pci: Add support for VGA region access 2013-02-18 10:11:13 -07:00