projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c73e197
)
KVM: x86 emulator: check return value against correct define
author
Gleb Natapov
<gleb@redhat.com>
Mon, 15 Mar 2010 14:38:30 +0000
(16:38 +0200)
committer
Avi Kivity
<avi@redhat.com>
Mon, 17 May 2010 09:15:48 +0000
(12:15 +0300)
Check return value against correct define instead of open code
the value.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 4dce80560d264dddb31d57f0fc5d835de5521124..670ca8f151d2f7a4a6100106670814c8b2871f63 100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-566,7
+566,7
@@
static u32 group2_table[] = {
#define insn_fetch(_type, _size, _eip) \
({ unsigned long _x; \
rc = do_insn_fetch(ctxt, ops, (_eip), &_x, (_size)); \
- if (rc !=
0)
\
+ if (rc !=
X86EMUL_CONTINUE)
\
goto done; \
(_eip) += (_size); \
(_type)_x; \