KVM: Return directly after a failed copy_from_user() in kvm_vm_compat_ioctl()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 22 Jan 2017 10:30:21 +0000 (11:30 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Feb 2017 11:29:42 +0000 (12:29 +0100)
commitf6a3b168e56abe094b5c93dbafc2f0a0bf64e702
treeac31f00c6b271d05ca3d6f528a1a8390d1af04f7
parentbd7e5b0899a429445cc6e3037c13f8b5ae3be903
KVM: Return directly after a failed copy_from_user() in kvm_vm_compat_ioctl()

* Return directly after a call of the function "copy_from_user" failed
  in a case block.

  This issue was detected by using the Coccinelle software.

* Delete the jump label "out" which became unnecessary with
  this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c