From: Nicholas Krause Date: Wed, 5 Aug 2015 14:44:40 +0000 (-0400) Subject: kvm: x86: Fix error handling in the function kvm_lapic_sync_from_vapic X-Git-Tag: omap-for-v4.3/fixes-merge-window~47^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=603242a88ac44771442b077e0c9cb4d3af2b796f;p=pandora-kernel.git kvm: x86: Fix error handling in the function kvm_lapic_sync_from_vapic This fixes error handling in the function kvm_lapic_sync_from_vapic by checking if the call to kvm_read_guest_cached has returned a error code to signal to its caller the call to this function has failed and due to this we must immediately return to the caller of kvm_lapic_sync_from_vapic to avoid incorrectly call apic_set_tpc if a error has occurred here. Signed-off-by: Nicholas Krause Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed