On Sun, Feb 28, 2016 at 05:32:07PM +0200, Michael S. Tsirkin wrote: > 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: sta...@vger.kernel.org > Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
Acked-by: Christoffer Dall <christoffer.d...@linaro.org>