diff options
| author | Xiaoyao Li <xiaoyao.li@linux.intel.com> | 2019-02-14 12:08:58 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:25:46 +0100 |
| commit | 0d41c03c41ec82e1eeeeff88fae59d186c60d5d9 (patch) | |
| tree | fda117bfcdfed73f565870b1ffad56c3f92885a6 /include/linux/fs_stack.h | |
| parent | c58f010bebfd4e1a862b43fce0a608d862fa785f (diff) | |
kvm: vmx: Fix entry number check for add_atomic_switch_msr()
commit 98ae70cc476e833332a2c6bb72f941a25f0de226 upstream.
Commit ca83b4a7f2d068da79a0 ("x86/KVM/VMX: Add find_msr() helper function")
introduces the helper function find_msr(), which returns -ENOENT when
not find the msr in vmx->msr_autoload.guest/host. Correct checking contion
of no more available entry in vmx->msr_autoload.
Fixes: ca83b4a7f2d0 ("x86/KVM/VMX: Add find_msr() helper function")
Cc: stable@vger.kernel.org
Signed-off-by: Xiaoyao Li <xiaoyao.li@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fs_stack.h')
0 files changed, 0 insertions, 0 deletions
