OSDN Git Service
(root)
/
android-x86
/
kernel.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
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index
4dce805
..
670ca8f
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; \