]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: x86 emulator: check return value against correct define
authorGleb Natapov <gleb@redhat.com>
Mon, 15 Mar 2010 14:38:30 +0000 (16:38 +0200)
committerAvi 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

index 4dce80560d264dddb31d57f0fc5d835de5521124..670ca8f151d2f7a4a6100106670814c8b2871f63 100644 (file)
@@ -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;                                                      \