]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0cfbb05fc6608d0ab6df3212cfd719cbbb1858d
tree3ea4fc04487d29bd14208b19b1d2ca2db63ecefc
parentc3d446ecf131251ed10e470dd109a468e2ead509
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