Michael S. Tsirkin 4cad67fca3 arm/arm64: KVM: 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 kvm to do
	return copy_to_user(...)) ?  -EFAULT : 0;

everywhere.

Cc: stable@vger.kernel.org
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2016-02-29 09:56:40 +00:00
..
2016-01-22 17:26:00 -08:00
2016-01-20 17:55:20 -08:00
2016-01-20 17:55:20 -08:00
2016-01-13 11:25:54 -08:00
2016-01-20 18:16:29 -08:00
2015-12-15 17:36:20 +01:00
2016-01-20 17:55:20 -08:00
2016-01-20 17:55:20 -08:00
2016-01-06 01:32:09 -05:00
2016-01-20 18:29:13 -08:00