MIPS: KVM: Return directly after a failed copy_from_user() in kvm_arch_vcpu_ioctl()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 19 Jan 2017 10:10:26 +0000 (11:10 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 2 Feb 2017 14:10:16 +0000 (14:10 +0000)
commit5a6da5f78431f6b172078eb5bd524187833f360b
tree3ea4fc04487d29bd14208b19b1d2ca2db63ecefc
parent0b4c208d443ba2af82b4c70f99ca8df31e9a0020
MIPS: KVM: Return directly after a failed copy_from_user() in kvm_arch_vcpu_ioctl()

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

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

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/mips/kvm/mips.c